events

sets an additional CSS class that will be applied to days

function events;

Example

webix.ui({
    view:"calendar",
    // the webix.Date.isHoliday function marks weekend days with color
    events:webix.Date.isHoliday
});

Details

The function is called for all days and must return the name of a CSS class to apply.

The function has two parameters:

  • day - (Date) a date object
  • isOutside - (boolean) checks, whether a day is located outside the current month
See also
Back to top
Join Our Forum
We've retired comments here. Visit our forum for faster technical support, connect with other developers, and share your feedback there.