Interface for a class Timeline
EmitType<TimelineRenderingEventArgs>
Event triggers before rendering each item.
EmitType<Event>
Event callback that is raised after rendering the timeline.
string
| TimelineAlign
Defines the alignment of item content within the Timeline. The possible values are:
<div id="timeline"> </div>
import { Timeline, ItemModel } from '@syncfusion/ej2-layouts';
const textContent: ItemModel[] = [
{ content: 'Cart' },
{ content: 'Personal Info' },
{ content: 'Delivery Address' },
{ content: 'Payment' }
];
let timelineObj: Timeline = new Timeline({
items : textContent,
align: 'before'
});
timelineObj.appendTo('#timeline');
string
Defines the CSS class to customize the Timeline appearance.
boolean
Enable or disable persisting component’s state between page reloads.
boolean
Enable or disable rendering component in right to left direction.
Defines the list of items.
string
Overrides the global culture and localization value for this component. Default global culture is ‘en-US’.
string
| TimelineOrientation
Defines the orientation type of the Timeline. The possible values are:
<div id="timeline"> </div>
import { Timeline } from '@syncfusion/ej2-layouts';
let timelineObj: Timeline = new Timeline({
items: [{}, {}, {}, {}],
orientation: 'horizontal'
});
timelineObj.appendTo('#timeline');
boolean
Defines whether to show the timeline items in reverse order or not.
string
| Function
Defines the template content for each timeline item. The template context will contain the item model.
<div id="timeline"> </div>
import { Timeline } from '@syncfusion/ej2-layouts';
let timelineObj: Timeline = new Timeline({
items: [{}, {}, {}, {}],
template: '<span>${currentItem}</span>'
});
timelineObj.appendTo('#timeline');