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);