ng-zorro-antd
ng-zorro-antd copied to clipboard
Disabled dates in range picker
What problem does this feature solve?
Currently nzDisabledDate parameters calculates dates which should be disabled for both start and end range parts. There definitely should be an ability to pass 2 functions to calculate them for start and end parts of range separetely
What does the proposed API look like?
2 proposals.
- For nz-range-picker make 2 params: [nzDisabledDateStart] and [nzDisabledDateEnd]. Both should require a date as a parameter, just like [nzDisabledDate] works.
- Add the second optional param 'partType' === 'start' | 'end' in the [nzDisabledDate] function, which will make sense only when function passed to nz-range-picker.