跳转到主要内容

UNITS_date

信息

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

Description

设置视图头部显示的日期

UNITS_date: (date: Date) => string;

Parameters

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

Returns

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

Example

scheduler.templates.unit_date = function(date){
return scheduler.templates.day_date(date);
};

Applicable views: Units view

Details

注释

该模板需要激活 units 插件。

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.