ng-zorro-antd icon indicating copy to clipboard operation
ng-zorro-antd copied to clipboard

Disabled dates in range picker

Open uragun91 opened this issue 2 years ago • 0 comments

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.

  1. For nz-range-picker make 2 params: [nzDisabledDateStart] and [nzDisabledDateEnd]. Both should require a date as a parameter, just like [nzDisabledDate] works.
  2. Add the second optional param 'partType' === 'start' | 'end' in the [nzDisabledDate] function, which will make sense only when function passed to nz-range-picker.

uragun91 avatar Jun 22 '22 08:06 uragun91