quasar icon indicating copy to clipboard operation
quasar copied to clipboard

Qdate. Month picker.

Open kulkoff opened this issue 6 years ago • 6 comments

Hey. Add a props that will not show the calendar with days. emit-immediately doesn't work very well. The event is triggered to change any field. If I want to change the month and year, then I have to open the form 2 times. If I add a props - no-days, when I select the desired year and month, let the form close and the day is set to 1 day. Sorry for my english

kulkoff avatar Aug 04 '20 10:08 kulkoff

Hello. If you want a month-year selector it makes no sense to use the QDate component. Use 2 fields for year and month.

pdanpdan avatar Aug 04 '20 10:08 pdanpdan

Well, it's just not very beautiful. But competitors have similar functionality implemented - https://vuetifyjs.com/ru/components/date-pickers/#month-pickers And add one props to the quasar and everything will be fine ;)

kulkoff avatar Aug 04 '20 11:08 kulkoff

use that one, we don't insist on any specific components you are using

pdanpdan avatar Aug 04 '20 11:08 pdanpdan

But it was not bad for choosing a credit card expiration date at least.

kulkoff avatar Aug 04 '20 12:08 kulkoff

The month picker is equivalent to a QSelect with the months as options, for which reason it doesn't makes sense to add this feature...

rstoenescu avatar Aug 06 '20 14:08 rstoenescu

Hey. Add a props that will not show the calendar with days. emit-immediately doesn't work very well. The event is triggered to change any field. If I want to change the month and year, then I have to open the form 2 times. If I add a props - no-days, when I select the desired year and month, let the form close and the day is set to 1 day. Sorry for my english

Hi @kulkoff i leave here a pen with a solution made with quasar https://codepen.io/gsmitto/pen/wvgmYvr

gsmitto avatar Apr 20 '21 12:04 gsmitto