event_class
Description
将应用于事件容器的 CSS 类
event_class: (start: Date, end: Date, ev: any) => string
Parameters
start- (required) Date - 事件计划开始的日期end- (required) Date - 事件计划结束的日期ev- (required) object - 事件对象
Returns
css_class- (string) - 相关元素的 CSS 类
Example
scheduler.templates.event_class = (start, end, ev) => {
return "";
};
Applicable views: 日视图, 月视图, 周视图, 年视图, Units 视图, 时间线视图
Related samples
Details
在时间线视图中,模板仅应用于 'Bar' 和 'Tree' 模式。
有关自定义事件颜色的完整信息,请参阅相关文档 自定义事件颜色。
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.