跳转到主要内容

tooltip_date_format

Description

定义在tooltip中开始和结束日期的显示格式

tooltip_date_format: (date: Date) => string

Parameters

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

Returns

  • text - (string) - 用于在scheduler中渲染的html文本

Example

scheduler.templates.tooltip_date_format=function (date){
var formatFunc = scheduler.date.date_to_str("%Y-%m-%d %H:%i");
return formatFunc(date);
}

Details

注释

该template仅在启用tooltip插件时生效。

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.