getView
Description
Возвращает объект view по его имени. Если имя не указано, возвращает текущее представление
getView: (name?: string) => any
Parameters
name- (optional) string - необязательно, имя представления
Returns
view- (object) - объект view
Example
const timeline = scheduler.getView();
timeline.x_size = 8;
scheduler.setCurrentView();
Related samples
Details
Возвращает только те виды, которые имеют собственное объектное представление. В настоящее время это виды timeline и units, поэтому метод вернет null для любого другого вида.
Related Guides
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.