跳转到主要内容

load_format

Description

定义动态加载模式中使用的请求格式

load_format: (date: Date) => string

Parameters

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

Returns

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

Example

scheduler.templates.load_format = function(date){
var dateToStr_func = scheduler.date.date_to_str(scheduler.config.load_date);
return dateToStr_func(date);
}

Details

默认情况下,请求格式如下:

some.php?from=DATEHERE&to=DATEHERE

其中 DATEHERE 表示根据 load_date 选项格式化的有效日期值 (基于load_format模板的默认定义)

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.