Skip to main content

getTaskHeight

Description

Returns the visible height of a task

getTaskHeight: (id?: string | number) => number

Parameters

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

Returns

  • height - (number) - the height of the specified task or, if the id parameter is not specified, the height of the tasks

Example

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