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

Custom CSS class for a resource

Asked by Tim
9 months 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]
9 months 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
9 months ago.

You're awesome thanks

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