Перейти к основному содержимому

map_time

Description

Задаёт дату, отображаемую в первом столбце представления

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

Parameters

  • start - (required) Date - дата начала события
  • end - (required) Date - дата окончания события
  • event - (required) object - объект события

Returns

  • text - (string) - html текст для отображения в scheduler

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

примечание

Шаблон требует включения плагина map_view.

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.