TIMELINE_row_class
信息
此功能仅在 PRO 版本中可用。
Description
定义将分配给 Timeline 视图中某行的 CSS 类
TIMELINE_row_class: (section: object, timeline: object) => string;
Parameters
section- (required) object - 该 section 对象timeline- (required) object - 该 timeline 对象
Returns
css_class- (string) - 对应元素的 css 类名
Example
scheduler.templates.timeline_row_class = function(section, timeline){
return "";
};
Applicable views: Timeline view
Details
注释
该模板需要启用 timeline 插件。
该模板的默认实现如下:
scheduler.templates.TIMELINE_row_class = function(section, timeline){
if(timeline.folder_events_available && section.children){
return "folder";
}
return "";
};
Related API
Related Guides
Change log
- 版本 v5.3.9 中新增
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.