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

lightbox_header

Description

Определяет секцию заголовка lightbox

lightbox_header: (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.lightbox_header = function(start,end,ev){
return scheduler.templates.event_header(ev.start_date,ev.end_date,ev)
+ scheduler.templates.event_bar_text(ev.start_date,ev.end_date,ev);
};

Details

Если шаблон lightbox_header не задан, дата в заголовке будет отображаться в формате, определённом шаблоном event_header.

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.