Skip to main content

getView

Description

Returns a view object by its name. If no name is specified, returns the current view

getView: (name?: string) => any

Parameters

  • name - (optional) string - optional, the name of the view

Returns

  • view - (object) - a view object

Example

var timeline = scheduler.getView(); 
timeline.x_size = 8;
scheduler.setCurrentView();

Details

Returns only views that have their own object representation. Currently, these are timeline and units views, so the method will return null for any other view.

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.