跳到主要内容

getTaskTop

Description

获取任务的 DOM 元素在时间线区域的顶部位置

getTaskTop: (id: number | string) => number

Parameters

  • id - (required) number | string - 该任务的 ID

Returns

  • top - (number) - 该任务的 DOM 元素在 CSS top 位置的像素值

Example

gantt.getTaskTop(2);
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.