search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Custom CSS class for a resource

Asked by Tim
2 years ago.

Hi there,

How can I put a custom CSS class to a resource.
I want to change styling for specific resource name.
See my attachment.

Best regards
Tim

Answer posted by Dan Letecky [DayPilot]
2 years ago.

You can use onBeforeRowHeaderRender event handler to add a custom CSS class:
https://doc.daypilot.org/scheduler/row-header-customization/

Example:

JavaScript

dp.onBeforeRowHeaderRender = function(args) {
  args.row.cssClass = "row1";
};
CSS
<style>
  .row1 {
      color: white;
      background: red;
  }
</style>

Answer posted by Tim
2 years ago.

You're awesome thanks

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.