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 setid- (optional) string - the view name
Example
//displays the current view and date. Doesn't change anything, just refreshes
scheduler.updateView();
// displays the 4th July,2012 in the currently active view
scheduler.updateView(new Date(2012,7,4));
// displays the 3rd May,2012 in the Week view
scheduler.updateView(new Date(2012,5,3), "week");
Related samples
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 between methods is that unlike updateView, setCurrentView generates the onBeforeViewChange, onViewChange events.
Related API
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.