TIMELINE_row_class
к сведению
Эта функция доступна только в PRO-версии.
Description
Определяет CSS класс, который будет присвоен строке в представлении Timeline
TIMELINE_row_class: (section: object, timeline: object) => string;
Parameters
section- (required) object - объект секцииtimeline- (required) object - объект таймлайна
Returns
css_class- (string) - CSS класс для соответствующего элемента
Example
scheduler.templates.timeline_row_class = function(section, timeline){
return "";
};
Applicable views: Timeline view
Details
примечание
Этот шаблон требует включения плагина timeline.
Стандартная реализация шаблона выглядит следующим образом:
scheduler.templates.TIMELINE_row_class = function(section, timeline){
if(timeline.folder_events_available && section.children){
return "folder";
}
return "";
};
Related API
Related Guides
Change log
- добавлено в версии v5.3.9
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.