Skip to main content

updateView

Description

Displays the specified view and date (doesn't invoke any events)

updateView: (date?: Date, view?: string) => void

Parameters

  • date - (optional) Date - the date to set
  • view - (optional) string - the view name

Example

// displays the current view and date. Doesn't change anything, just refreshes
scheduler.updateView();
// displays 2027-08-04 in the currently active view
scheduler.updateView(new Date(2027, 7, 4));
// displays 2027-06-03 in the Week view
scheduler.updateView(new Date(2027, 5, 3), "week");

Details

  • Being invoked without parameters, the function will just refresh the current view.
  • The names for default views are 'day', 'week', 'month'. To specify any other view, use its name parameter.
  • The method is similar to setCurrentView(). The only difference is that unlike updateView(), setCurrentView() generates the onBeforeViewChange and onViewChange events.
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.