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

Target custom columnheader_cell as rowheadercol with number

Asked by Mikolaj
3 years ago.

Hi, i used this code in style... how it looks see please screenshot

.scheduler_default_rowheadercol1 .scheduler_default_rowheader_inner
{
justify-content: center;
font-weight: bold;
color: blue;
}
.scheduler_default_columnheader_cell .scheduler_default_columnheader_cell_inner
{
color: red;
display: grid;
text-align: center;
}

Is it possible somehow define scheduler_default_columnheader_cell with number as scheduler_default_rowheadercol ???

We want use that column with color if we search by some criteria... but with rowheadercol is easy to add number to it... but with columnheader_cell it doesn't works... is some way how we can target specific columnheader_cell and change color or other css properties in it but not for all columnheader_cell as see you see in attachment ?

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

The latest sandbox build (2021.3.5045) now support adding a custom CSS class to the column headers using onBeforeRowHeaderColumnRender event handler.

https://javascript.daypilot.org/sandbox/

Example:

dp.onBeforeRowHeaderColumnRender = function(args) {
  args.column.cssClass = "my-class";
};

See also:
https://api.daypilot.org/daypilot-scheduler-onbeforerowheadercolumnrender/

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