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
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.