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

createUnitsView

к сведению

Эта функция доступна только в PRO-версии.

Description

Настраивает Units view внутри scheduler

createUnitsView: (config: any) => void

Parameters

  • config - (required) object - объект конфигурации Units view

Example

scheduler.createUnitsView({
name:"unit",
property:"unit_id",
list:[
{key:1, label:"Section A"},
{key:2, label:"Section B"},
{key:3, label:"Section C"}
]
});

scheduler.init('scheduler_here',new Date(2027,5,30),"unit");

scheduler.parse([
{start_date:"06/30/2027 09:00",end_date:"06/30/2027 12:00",text:"Task1",unit_id:1},
{start_date:"06/30/2027 12:00",end_date:"06/30/2027 20:00",text:"Task2",unit_id:3},
{start_date:"06/30/2027 08:00",end_date:"06/30/2027 12:00",text:"Task3",unit_id:2}
],"json");

Доступные представления: Units view

Details

примечание

Метод требует активации плагина units.

Объект конфигурации для Units view поддерживает следующие свойства:

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.