TIMELINE_cell_value
信息
此功能仅在 PRO 版本中可用。
Description
表示视图中单元格内排定的事件数量
TIMELINE_cell_value: (evs: array, date: Date, section: object) => string;
Parameters
evs- (required) array - 包含该单元格内事件对象的数组date- (required) Date - 对应单元格的日期section- (required) object - 对应的 section 对象
Returns
text- (string) - 用于在 scheduler 中渲染的 html 文本
Example
scheduler.templates.timeline_cell_value = function(evs, date, section){
return evs ? evs.length : "";
};
Applicable views: Timeline view
Details
注释
该模板需要启用 timeline 插件。
注释
默认情况下,该模板仅在 Timeline 视图的 'cell' 模式下触发。但是,如果开启了 Timeline 视图 的 cell_template 选项,该模板也会在视图的所有其他模式中被调用。
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.