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

[DatePicker] Add nzMode "quarter" #7380

Closed
jdessaint opened this issue Apr 22, 2022 · 0 comments
Closed

[DatePicker] Add nzMode "quarter" #7380

jdessaint opened this issue Apr 22, 2022 · 0 comments
Assignees

Comments

@jdessaint
Copy link

What problem does this feature solve?

In some cases, we could be need to have a quarter selection in the DatePicker component.

What does the proposed API look like?

Like the week selection using the datepicker[nzMode="date"] template with row selection instead of case selection, we could have a row selection in the datepicker[nzMode="month"] template to select a quarter of a year.

m310851010 added a commit to m310851010/ng-zorro-antd that referenced this issue Apr 4, 2024
Laffery pushed a commit that referenced this issue Jun 3, 2024

Verified

This commit was created on github.com and signed with GitHub’s verified signature.
…8478)

* feat(module:date-picker): quarter selection of date picker(#7818,#7380)

* feat(module:date-picker): quarter selection of date picker

* feat(module:date-picker): format quarter

* feat(module:date-picker): quarter disable date

* feat(module:date-picker): use date-fns getQuarter

* feat(module:date-picker): use date-fns startOfQuarter

* feat(module:date-picker): fixed test

* feat(module:date-picker): add test case

* Update zh_HK.ts

* Update zh_TW.ts
@Laffery Laffery closed this as completed Jun 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants