event_class
Description
Определяет CSS класс, который будет добавлен к контейнеру события
event_class: (start: Date, end: Date, ev: any) => string
Parameters
start- (required) Date - дата начала событияend- (required) Date - дата окончания событияev- (required) object - объект события
Returns
css_class- (string) - CSS класс для соответствующего элемента
Example
scheduler.templates.event_class = function(start,end,ev){
return "";
};
Applicable views: Day view, Month view, Week view, Year view, Units view, Timeline view
Related samples
Details
Для Timeline view этот шаблон используется только в режимах 'Bar' и 'Tree'.
Для подробных инструкций по настройке цветов событий смотрите связанный материал Пользовательский цвет события.
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.