跳转到主要内容

time_slot_class

Description

定义Day视图和Week视图中背景单元格的CSS类

time_slot_class: () => void

Example

scheduler.templates.time_slot_class=function(date){
if(date.getHours() < 7 || date.getHours() > 18){
return "custom_color";
}

};

Details

time_slot_template

Day视图和Week视图将背景显示为30分钟的时间段。此template允许你为日历中的任何背景单元格分配自定义的CSS类。

Change log

  • added in v7.0
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.