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

quick_info_date

Description

Определяет дату, отображаемую в всплывающей форме редактирования

quick_info_date: (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.quick_info_date = function(start, end, ev){
if (scheduler.isOneDayEvent(ev)){
return scheduler.templates.day_date(start, end, ev) + " " +
scheduler.templates.event_header(start, end, ev);
}else{
return scheduler.templates.week_date(start, end, ev);
}
};

Details

примечание

Шаблон работает только при включенном плагине quick_info.

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.