TIMELINE_scale_date
信息
此功能仅在 PRO 版本中可用。
Description
定义X轴上显示的项目
TIMELINE_scale_date: (date: Date) => string;
Parameters
date- (required) Date - 需要格式化的日期
Returns
text- (string) - 用于在scheduler中显示的html内容
Example
scheduler.templates.timeline_scale_date = function(date){
var timeline = scheduler.matrix.timeline;
var func = scheduler.date.date_to_str(timeline.x_date||scheduler.config.hour_date);
return func(date);
}
Applicable views: Timeline view
Details
注释
此模板需要启用timeline插件。
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.