跳转到主要内容

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.