Перейти к основному содержимому

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.