onChange

fires when the current date is changed

void onChange();

Example

let today = new Date(2020, 10, 12);
let tomorrow = webix.Date.add(today, 1, "day", true); 
 
webix.ui({
  view: "scheduler",
  date: today,
  url: "https://docs.webix.com/calendar-backend/"
  on: {
    onChange: function(date) {
      if(date === tomorrow) {
        // do smth
      }
    }
  }
});

Details

The event handler function takes a date object as a parameter.

See also
Back to top