본문으로 건너뛰기

createUnitsView

정보

이 기능은 PRO 에디션에서만 사용할 수 있습니다.

Description

스케줄러 내에서 Units 뷰를 설정합니다.

createUnitsView: (config: any) => void

Parameters

  • config - (required) object - Units 뷰의 설정 객체

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(2009,5,30),"unit");

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

Applicable views: Units view

Details

노트

이 메서드를 사용하려면 units 플러그인이 활성화되어 있어야 합니다.

Units 뷰의 설정 객체는 다음 속성들을 지원합니다:

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.