map_time
Description
Legt das Datum fest, das in der ersten Spalte der Ansicht angezeigt wird
map_time: (start: Date, end: Date, event: any) => string
Parameters
start- (required) Date - das Datum, an dem ein Ereignis beginntend- (required) Date - das Datum, an dem ein Ereignis endetevent- (required) object - das Ereignisobjekt
Returns
text- (string) - HTML-Text, der im Scheduler angezeigt wird
Example
scheduler.templates.map_time = function(start,end,ev){
if (ev._timed)
return this.day_date(ev.start_date, ev.end_date, ev) + " " +
this.event_date(start);
else
return scheduler.templates.day_date(start) + " – " +
scheduler.templates.day_date(end);
};
Applicable views: Map view
Details
Hinweis
Die Vorlage erfordert, dass das map_view Plugin aktiviert ist.
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.