getTaskHeight

returns the visible height of a task

number getTaskHeight( [string | number id] );
idstring | numberthe task's id
numberthe height of the specified task or, if the id parameter is not specified, the height of the tasks

Example

const height = gantt.getTaskHeight(); // -> 30

Back to top