Skip to main content

render

Description

Repaints the scheduler

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

Parameters

  • date - (optional) Date - the date to display
  • view - (optional) string - the name of a view to display

Example

// render to apply the config
scheduler.config.hour_size_px = 88;
scheduler.render();


// switch to another date
scheduler.render(new Date(2020,7,4));

// switch to another view
scheduler.render(null, "week");

Details

This method is an alias of scheduler.setCurrentView and works identically to it.

  • The names for default views are 'day', 'week', 'month'. To specify any other view - use its name parameter.
  • The method invokes the onBeforeViewChange, onViewChange.
  • The method is similar to updateView. The only difference between methods is that updateView doesn't generate any 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.