event_text
Description
Указывает текст события
event_text: (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.event_text = (start, end, event) => {
return `<a href='http://some.com/details.php?for=${event.id}'>${event.text}</a>`;
};
Доступные представления: Day view, Week view, Units view
Related samples
Details
Обратите внимание, что для представлений Month и Timeline необходимо использовать шаблон event_bar_text для указания текста события.
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.