angular / components

Component infrastructure and Material Design components for Angular
https://material.angular.io
MIT License
24.32k stars 6.73k forks source link

feat(matDatepicker): How to do month range picking with datepicker #29182

Open mithun2003 opened 3 months ago

mithun2003 commented 3 months ago

Feature Description

I want to pick two month range for filter but by default it give date also so how to select month range only

Use Case

No response

forgantini commented 3 months ago

i'm interested into too

amysorto commented 3 months ago

Do you mean you want a daterange picker that shows two months side by side? Something along the lines like this? Image

Or a month range picker (ex. April to September). If so it seems like thats probably too small of a use case to add to this library and something that might be better as a custom component in your app.

forgantini commented 3 months ago

no simply a month range picker like the day range is (something like that for example: https://stackblitz.com/edit/angular-kbsxte?file=src%2Fapp%2Fmonth-picker%2Fmonth-picker.component.ts ) ... i don't know if exists some configuration to make the rangedatepicker act in this way (public or private) but could be useful

mithun2003 commented 3 months ago

no simply a month range picker like the day range is (something like that for example: https://stackblitz.com/edit/angular-kbsxte?file=src%2Fapp%2Fmonth-picker%2Fmonth-picker.component.ts ) ... i don't know if exists some configuration to make the rangedatepicker act in this way (public or private) but could be useful

Yeah I want a month picker like this. I think we can't create it using matdaterangepicker