returns the object of the layout view by its name
name | string | the name of the layout view |
object | the object of the layout view |
gantt.getLayoutView("resourceTimeline").posFromDate(new Date(2025, 05, 08));
// returns 210
gantt.getLayoutView("resourceTimeline").dateFromPos(210);
// returns 08 June, 2025
The method allows applying some methods to the returned object of the layout view. The methods are:
To scroll the view to the specified position, apply the scrollLayoutCell method.
Related sample: Public methods to get the layout cell views and scroll them