Dynamic dating diagram
The function is called by the Timeline with an items' data as the first argument and the item frame element as the second, and must return HTML code, a string or a template as result.
When the option template is specified, the items do not need to have a field . This would be used as an additional way to add content that is constant in size with the visible frame of the item and does not get visibly hidden with the item's internal container: Specifies the default type for the timeline items.
The time scale on the axis is adjusted automatically, and supports scales ranging from milliseconds to years.
Timeline uses regular HTML DOM to render the timeline and items put on the timeline.
The displayed options can be filtered by providing a filter function.
Keep the number of items in this configuration limited to a maximum of a few hundred items.
If undefined, the Timeline will auto detect the type from the items data: if a start and end date is available, a 'range' will be created, and else, a 'box' is created. A template function used to generate the contents of the tooltip.
The function is called by the Timeline with an item data as the first argument, and must return HTML code, a string or a template as result. value (rather than inheriting from the timeline level).
This may change in future major releases, and code that specifies all item level values will handle major release changes better.
That is, instead of using A full example is available here: editing Items