Skip to main content

getTaskTop

Description

Gets the top position of the task's DOM element in the timeline area

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

Parameters

  • id - (required) number | string - the task's id

Returns

  • top - (number) - the CSS top position the task's DOM element in pixels

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.