Skip to main content

onViewChange

Description

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

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

Parameters

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

Example

scheduler.attachEvent("onViewChange", (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.