event_text
Description
定义事件显示的文本
event_text: (start: Date, end: Date, event: any) => string
Parameters
start- (required) Date - 事件的开始日期end- (required) Date - 事件的结束日期event- (required) object - 事件数据对象
Returns
text- (string) - 用于 在scheduler中显示事件的html内容
Example
scheduler.templates.event_text=function(start, end, event){
return "<a href='http://some.com/details.php?for="+event.id+"'>"
+event.text+"</a>";
}
Applicable views: Day view, Week view, Units view
Related samples
Details
请注意,对于Month和Timeline视图,应使用event_bar_text模板来设置事件的文本。
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.