tooltip_text
Description
设置在tooltip中显示的文本
tooltip_text: (start: Date, end: Date, event: any) => string
Parameters
start- (required) Date - 事件开始的日期end- (required) Date - 事件结束的日期event- (required) object - 事件对象本身
Returns
text- (string) - 显示在scheduler tooltip中的html内容
Example
scheduler.templates.tooltip_text = function(start,end,ev){
return "<b>Event:</b> "+ev.text+"<br/><b>Start date:</b> " +
scheduler.templates.tooltip_date_format(start)+
"<br/><b>End date:</b> "+scheduler.templates.tooltip_date_format(end);
};
Applicable views: Agenda view, Day view, Map view, Month view, Week view, Week Agenda view, Units view
Details
注释
该模板仅在启用tooltip 插件时生效。
Related API
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.