跳到主要内容

getWorkHours

Description

提供指定日期的工作时间

getWorkHours: (date: Date) => any[]

Parameters

  • date - (required) Date - 要检查的日期

Returns

  • hours - (array) - 该日期的工作时间段

Example

gantt.config.work_time = true;
gantt.init("gantt_here");

gantt.getWorkHours(new Date(2013,03,30))// -> [8, 17] /*!*/
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.