scrollLayoutCell
Description
将布局视图滚动到指定位置
scrollLayoutCell: (name: string, x: number | null, y: number | null) => void
Parameters
name- (必填) string - 布局视图的名称x- (必填) number | null - 可选,水平滚动的值,或 'null'(如果滚动位置不应改变)y- (必填) number | null - 可选,垂直滚动的值,或 'null'(如果滚动位置不应改变)
Example
// 仅水平滚动布局视图
gantt.scrollLayoutCell("resourceTimeline", 50);
// 仅垂直滚动布局视图
gantt.scrollLayoutCell("resourceTimeline", null, 50);
// 同时水平和垂直滚动布局视图
gantt.scrollLayoutCell("resourceTimeline", 100, 100);
Details
注释
sample: 用于获取布局单元格视图并滚动它们的公开方法
Related API
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.