跳到主要内容

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.