通过名称获取布局视图对象
name | string | 布局视图的名称 |
object | 布局视图对象 |
gantt.getLayoutView("resourceTimeline").posFromDate(new Date(2025, 05, 08));
// 返回 210
gantt.getLayoutView("resourceTimeline").dateFromPos(210);
// 返回 2025年6月8日
此方法用于访问布局视图对象,从而可以使用多个实用方法,包括:
若需将视图移动到特定位置,可使用 scrollLayoutCell 方法。
Related sample: 用于获取布局单元视图并滚动的公共方法