render
Description
스케줄러 디스플레이 를 새로 고칩니다
render: (date?: Date, view?: string) => void
Parameters
date- (optional) Date - 표시할 날짜view- (optional) string - 전환할 뷰의 이름
Example
// 새로운 설정으로 레이아웃 업데이트
scheduler.config.hour_size_px = 88;
scheduler.render();
// 다른 날짜로 변경
scheduler.render(new Date(2020,7,4));
// 다른 뷰로 변경
scheduler.render(null, "week");
Details
이 메서드는 scheduler.setCurrentView의 별칭으로 작동하며 동일한 방식으로 동작합니다.
- 기본 뷰 이름은 'day', 'week', 'month'를 포함합니다. 다른 뷰의 경우 해당 name 파라미터를 사용하세요.
- 이 메서드를 호출하면 onBeforeViewChange 및 onViewChange 이벤트가 발생합니다.
- updateView와 유사하지만, 주요 차이점은 updateView는 어떤 이벤트도 발생시키지 않습니다.
Related API
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.