Zum Hauptinhalt springen

tooltip_text

Description

Legt den Text fest, der in Tooltips angezeigt wird

tooltip_text: (start: Date, end: Date, event: any) => string

Parameters

  • start - (required) Date - Das Datum, an dem das Event beginnt
  • end - (required) Date - Das Datum, an dem das Event endet
  • event - (required) object - Das Event-Objekt selbst

Returns

  • text - (string) - HTML-Inhalt, der im Scheduler Tooltip angezeigt wird

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

Hinweis

Diese Vorlage funktioniert nur, wenn das tooltip Plugin aktiviert ist.

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.