跳到主要内容

getTaskHeight

Description​

返回任务的可见高度

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

Parameters​

  • task - (optional) string | number - 该任务的 ID

Returns​

  • height - (number) - 指定任务的高度,若未指定 id 参数,则为所有任务的高度

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.