Skip to main content

renderCalendar

Description

Creates a mini calendar

renderCalendar: (config: any) => HTMLElement

Parameters

  • config - (required) object - the calendar configuration object

Returns

  • div - (HTMLElement) - the HTML element of the calendar

Example

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

Details

note

The method requires the minical plugin to be activated.

The configuration object can have the following properties:

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.