본문으로 건너뛰기

renderCalendar

Description

컴팩트한 캘린더를 생성합니다

renderCalendar: (config: any) => HTMLElement

Parameters

  • config - (required) object - 캘린더 설정을 위한 구성 객체

Returns

  • div - (HTMLElement) - 캘린더의 HTML 요소

Example

const calendar = scheduler.renderCalendar({
container:"cal_here",
navigation:true,
handler:function(date, calendar){
scheduler.setCurrentView(date, scheduler._mode);
}
});

Details

노트

이 메서드는 minical 플러그인이 활성화되어 있어야 합니다.

구성 객체는 다음과 같은 속성을 포함할 수 있습니다:

const calendar = scheduler.renderCalendar({
container:"for_calendar",
date:new Date()
});
//
const calendar = scheduler.renderCalendar({
position:"some_id",
date:new Date()
});
//
const calendar = scheduler.renderCalendar({
position: { left: 100, top: 50 },
date:new Date()
});

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.