Timeline
Vertical display timeline.
When To Use
- When a series of information needs to be ordered by time (ascending or descending).
- When you need a timeline to make a visual connection.
Examples
Timeline API#
| Property | Description | Type | Default Value |
|---|---|---|---|
| Mode | ParameterWhere the line will be in relation to the items - left, right or alternate | TimelineMode? | TimelineMode.Left |
| Reverse | ParameterReverse nodes or not | Boolean | false |
| Pending | ParameterSet the last ghost node's existence or its content | OneOf<String, RenderFragment> | -- |
| PendingDot | ParameterSet the dot of the last ghost node when pending is true | RenderFragment | -- |
| ChildContent | ParameterContent of timeline. Should contain TimelineItem elements |
RenderFragment | -- |
| Id | ParameterID for the component's HTML | String | Uniquely Generated ID |
| Class | ParameterSpecifies one or more class names for an DOM element. | String | -- |
| Style | ParameterSpecifies an inline style for a DOM element. | String | -- |
| RefBack | ParameterA ForwardRef instance. You can get a reference to the internal DOM by using AntDesign.ForwardRef.Current. |
ForwardRef | -- |
TimelineItem API#
| Property | Description | Type | Default Value |
|---|---|---|---|
| ChildContent | ParameterThe content of the timeline item. | RenderFragment | -- |
| Dot | ParameterThe dot of the timeline item. | RenderFragment | -- |
| Color | ParameterThe color of the timeline item. | OneOf<TimelineDotColor, String> | TimelineDotColor.Blue |
| Label | ParameterThe label of the timeline item. | String | -- |
| Id | ParameterID for the component's HTML | String | Uniquely Generated ID |
| Class | ParameterSpecifies one or more class names for an DOM element. | String | -- |
| Style | ParameterSpecifies an inline style for a DOM element. | String | -- |
| RefBack | ParameterA ForwardRef instance. You can get a reference to the internal DOM by using AntDesign.ForwardRef.Current. |
ForwardRef | -- |