agenda_time
Description
Определяет дату, отображаемую в первом столбце вида Agenda
agenda_time: (start: Date, end: Date, event: any) => string
Parameters
start- (required) Date - начальная дата событияend- (required) Date - конечная дата событияevent- (required) object - данные события
Returns
text- (string) - html-контент, используемый для отображения в scheduler
Example
const templates = scheduler.templates;
scheduler.templates.agenda_time = function(start, end, event){
if (scheduler.isOneDayEvent(event)) {
return templates.day_date(event) + " " + templates.event_date(start);
} else {
return templates.day_date(start) + " – " +
templates.day_date(end);
}
};
Applicable views: Agenda view
Details
примечание
Этот шаблон работает только если включен плагин agenda_view.
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.