跳转到主要内容

TIMELINE_second_scale_date

信息

此功能仅在 PRO 版本中可用。

Description

定义显示在次要X轴上的项目

TIMELINE_second_scale_date: (date: Date) => string;

Parameters

  • date - (required) Date - 需要格式化的日期

Returns

  • text - (string) - 用于在scheduler中渲染的html内容

Example

scheduler.templates.timeline_second_scale_date = function(date){
var timeline = scheduler.matrix.timeline;
var func = scheduler.date.date_to_str(
(timeline.second_scale && timeline.second_scale.x_date)?
timeline.second_scale.x_date:scheduler.config.hour_date
);
return func(date);
};

Applicable views: Timeline view

Details

注释

该template仅在启用timeline插件时有效。

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.