Static position datepicker
See original GitHub issueWhat problem does this feature solve?
Current the popup datepicker works very well but user some time needs a already open datepicker to quickly select a date. It can be achieved by using nzOpen=true but the position of opened datepicker is absolute and it is placed under the ‘cdk-overlay-connected-position-bounding-box’ which cover the whole view portal.
So the tricky thing is: when the layout or offset of the ‘fake’ container where the orginal <nz-date-picker></nz-date-picker> is placed in is changed, the datepicker will overflow cause the left or top of its absolute position is not changed.
If ng-zorro-antd can provide static opened datepicker, that would be much nicer. Static and opened datepicker is helpful for date selection.
Thanks.
What does the proposed API look like?
Add a new nzStatic of type boolean default to false. When it is true, use position: static for the datepicker and place it under the original container (where the <nz-date-picker></nz-date-picker> is locating at).
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:5 (3 by maintainers)

Top Related StackOverflow Question
This could also lead to another useful API entry for
nzInlinewhich could hide the input field and instead show an inline, open date/month/range/week picker.Edit (20/04/2020): Or you can use the calendar component in a card - really useful and easily missed (sorry about that).
I belive that this feature is already implemented in a previous PR #6436.