unmarkCalendar
Description
从指定日期移除一个 CSS 类
unmarkCalendar: (calendar: any, date: Date, css: string) => void
Parameters
calendar- (required) object - 迷你日历对象date- (required) Date - 要取消标记的日期css- (required) string - 要移除的 CSS 类名
Example
// 获取日历对象有两种方式:
// 通过创建一个迷你日历
var calendar = scheduler.renderCalendar({
container:"cal_here",
navigation:true,
handler:function(date){
scheduler.setCurrentView(date, scheduler._mode);
}
});
// 或者通过选择包含迷你日历的容器
var calendar = document.querySelector(".dhx_mini_calendar");
scheduler.markCalendar(calendar, new Date(2010,3,1), "my_style");
...
scheduler.unmarkCalendar(calendar, new Date(2010,3,1), "my_style");
Details
注释
该方法需要激活 minical 插件。
注释
请注意,此方法仅适用于迷你日历,不适用于调度器本身。
Related API
Related Guides
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.