데이터 로딩
dhtmlxScheduler는 여러 형식으로 데이터를 로드할 수 있습니다. 대부분의 애플리케이션은 JSON을 사용합니다. iCalendar (.ics) 및 XML은 또한 호환성 또는 가져오기 시나리오를 위해 지원됩니다.
관련 가이드
인라인 데이터 세트에서 데이터 로드
인라인 데이터 세트에서 데이터를 로드하려면 parse() 메소드를 사용하세요:
scheduler.init("scheduler_here", new Date(2027, 4, 1), "month");
...
scheduler.parse([
{ id: "1", text: "Meeting", start_date: "2027-05-11 14:00", end_date: "2027-05-11 17:00" },
{ id: "2", text: "Conference", start_date: "2027-05-15 12:00", end_date: "2027-05-18 19:00" },
{ id: "3", text: "Interview", start_date: "2027-05-24 09:00", end_date: "2027-05-24 10:00" }
]);
관련 샘플
관련 API
관련 가이드
데이터 파일에서 데이터 로드
데이터 파일에서 데이터를 로드하려면 load() 메소드를 사용하세요:
scheduler.init("scheduler_here", new Date(2027, 4, 1), "month");
...
scheduler.load("data.json"); // 파일에서 데이터 불러오기