Skip to main content

onViewChange

Description

Fires after the current view has been changed to some other one

onViewChange: (new_mode: string, new_date: object) => void

Parameters

  • new_mode - (required) string - a new view
  • new_date - (required) object - a new date

Example

scheduler.attachEvent("onViewChange", function (new_mode , new_date){
//any custom logic here
});

Details

The event is called each time the current view is changed.

Need help?
Got a question about the documentation? Reach out to our technical support team for help and guidance. For custom component solutions, visit the Services page.