Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timeline with custom alternate #5470

Closed
danilokorber opened this issue Jun 25, 2020 · 0 comments · Fixed by #5478
Closed

Timeline with custom alternate #5470

danilokorber opened this issue Jun 25, 2020 · 0 comments · Fixed by #5478

Comments

@danilokorber
Copy link

What problem does this feature solve?

Would be nice to have the option to define of which side of the timeline a timeline-item should appear. For example, during a football game a team scores twice. This means that two items should appear on the same side of the timeline.

What does the proposed API look like?

nz-timeline should have a new [nzMode] called 'custom'.
nz-timeline-item should have a new property [nzSide] with type 'left' or 'right'. If [nzSide] is not informed, it should appear on the same side as the previous timeline-item.

wzhudev pushed a commit to wzhudev/ng-zorro-antd that referenced this issue Jun 28, 2020
vthinkxie pushed a commit that referenced this issue Jul 9, 2020
* feat(module:timeline): support custom position

close #5470

* test: add test to position

* fix: simplify method
hsuanxyz pushed a commit to hsuanxyz/ng-zorro-antd that referenced this issue Aug 5, 2020
* feat(module:timeline): support custom position

close NG-ZORRO#5470

* test: add test to position

* fix: simplify method
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants