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

How to set custom border color on business days in scheduler?

Asked by Anonymous
2 years ago.

Is it possible to set a custom border color on business days of the week?
This applies to both the vertical and horizontal lines.

And if so, what's the neatest way to do this?

Just another question, on which property is the line set on a cell in the body content of the scheduler? I don't see very quickly whether it is set up via border or via background color. or in another way?

thanks in advance!

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

The cell borders are rendered using long 1px elements that are displayed at the cell boundaries. The color is set using "background-color" style.

The horizontal lines are marked with .scheduler_default_matrix_horizontal_line CSS class. The vertical lines are marked with .scheduler_default_matrix_vertical_line CSS class.

You can access the lines using onBeforeGridLineRender event and add a custom CSS class (args.cssClass) or modify the color directly (args.color).

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

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