map_time
Description
设置视图第一列显示的日期
map_time: (start: Date, end: Date, event: any) => string
Parameters
start- (required) Date - 事件开始的日期end- (required) Date - 事件结束的日期event- (required) object - 事件对象
Returns
text- (string) - 在scheduler中显示的html文本
Example
scheduler.templates.map_time = function(start,end,ev){
if (ev._timed)
return this.day_date(ev.start_date, ev.end_date, ev) + " " +
this.event_date(start);
else
return scheduler.templates.day_date(start) + " – " +
scheduler.templates.day_date(end);
};
Applicable views: Map view
Details
注释
该template需要启用map_view插件。
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.