getTaskTop

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

number getTaskTop(number | string id);
idnumber | stringthe task's id
numberthe CSS top position the task's DOM element in pixels

Example

gantt.getTaskTop(2);

See also
Back to top