跳到主要内容

getTaskHeight

Description

提供任务的可见高度

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

Parameters

  • id - (optional) string | number - 任务的 id

Returns

  • height - (number) - 指定任务的高度,或者如果未提供 id 参数,则返回任务的高度

Example

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