render

repaints the scheduler

void render( [Date date,string view] );
dateDatethe date to display
viewstringthe 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.
See also
Back to top