Skip to main content

TIMELINE_cell_value

info

This functionality is available in the PRO edition only.

Description

Specifies the number of scheduled events in a cell of the view

TIMELINE_cell_value: (evs: array, date: Date, section: object) => string;

Parameters

  • evs - (required) array - an array of objects of events contained in a cell
  • date - (required) Date - the date of a cell
  • section - (required) object - the section object

Returns

  • text - (string) - html text for rendering in the scheduler

Example

scheduler.templates.timeline_cell_value = function(evs, date, section){
return evs?evs.length:"";
};

Applicable views: Timeline view

Details

note

The template requires the timeline plugin to be activated.

note

By default, the template is called only in the 'cell' mode of the Timeline view. But if you enable the cell_template config of the Timeline view, the template will be called in all other modes of the view as well.

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.