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

TIMELINE_scale_date

к сведению

Эта функция доступна только в PRO-версии.

Description

Определяет элементы, отображаемые на оси X

TIMELINE_scale_date: (date: Date) => string;

Parameters

  • date - (required) Date - дата, которую необходимо отформатировать

Returns

  • text - (string) - html-содержимое для отображения в scheduler

Example

scheduler.templates.timeline_scale_date = function(date){
var timeline = scheduler.matrix.timeline;
var func = scheduler.date.date_to_str(timeline.x_date||scheduler.config.hour_date);
return func(date);
}

Applicable views: Timeline view

Details

примечание

Этот шаблон требует включения плагина timeline.

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.