Timeline
Vertical display timeline.
When To Use#
- When a series of information needs to be ordered by time (ascend or descend).
- When you need a timeline to make a visual connection.
import { NzTimelineModule } from 'ng-zorro-antd/timeline';
Examples
- Create a services site 2015-09-01
- Solve initial network problems 2015-09-01
- Technical testing 2015-09-01
- Network problems being solved 2015-09-01
Loading...
- Create a services site 2015-09-01
- Solve initial network problems 2015-09-01
- Technical testing 2015-09-01
- Recording...
Loading...
- Create a services site 2015-09-01
- Solve initial network problems 2015-09-01
- Technical testing 2015-09-01
- Network problems being solved 2015-09-01
Loading...
- ⚽Alice 20'
- ⚽Susan 28'
- ⚽Tim 45'
- ⚽Bob 79'
Loading...
- Create a services site 2015-09-01
- Solve initial network problems 2015-09-01
Solve initial network problems 1
Solve initial network problems 2
Solve initial network problems 3 2015-09-01
Technical testing 1
Technical testing 2
Technical testing 3 2015-09-01
Technical testing 1
Technical testing 2
Technical testing 3 2015-09-01
Technical testing 1
Technical testing 2
Technical testing 3 2015-09-01
Loading...
- Create a services site 2015-09-01
- Solve initial network problems 2015-09-01
- Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo.
- Network problems being solved 2015-09-01
- Create a services site 2015-09-01
- Technical testing 2015-09-01
Loading...
- Create a services site 2015-09-01
- Solve initial network problems 2015-09-01
- Technical testing 2015-09-01
- Network problems being solved 2015-09-01
Loading...
- 2015-09-01Create a services
- 2015-09-01 09:12:11Solve initial network problems
- Technical testing
- 2015-09-01 09:12:11Network problems being solved
Loading...
API#
<nz-timeline>
<nz-timeline-item>step1 2015-09-01</nz-timeline-item>
<nz-timeline-item>step2 2015-09-01</nz-timeline-item>
<nz-timeline-item>step3 2015-09-01</nz-timeline-item>
<nz-timeline-item>step4 2015-09-01</nz-timeline-item>
</nz-timeline>
nz-timeline#
Timeline
Property | Description | Type | Default |
---|---|---|---|
[nzPending] | Set the last ghost node's existence or its content | string|boolean|TemplateRef<void> | false |
[nzPendingDot] | Set the dot of the last ghost node when pending is true | string|TemplateRef<void> | <span nz-icon nzType="loading"></span> |
[nzReverse] | Reverse nodes or not | boolean | false |
[nzMode] | By sending alternate the timeline will distribute the nodes to the left and right | 'left' | 'alternate' | 'right' | 'custom' | - |
nz-timeline-item#
Node of timeline
Property | Description | Type | Default |
---|---|---|---|
[nzColor] | Set the circle's color to 'blue' | 'red' | 'green' | 'gray' or other custom colors | string | blue |
[nzDot] | Customize timeline dot | string | TemplateRef<void> | - |
[nzPosition] | Customize position, only works when nzMode is custom | 'left' | 'right' | - |
[nzLabel] | Set the label | string | TemplateRef<void> | - |