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