TobyMosque / app-extension-qdatetimepicker

QDateTimePicker for Quasar

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature Request: Year picker type

codegrue opened this issue · comments

Please support a mode that just displays the year picker and returns the result as an integer.

@codegrue I'm bound to the QDate and QTime API. while is possible to set the default-view, we can't disable others view.

To be able to create a Year Picker, we must have the ability to disable the Calendar and Months views, letting only the Years views enabled.

Of course, we can archive that with some workarounds, like setting the default-view: 'Years', minimal: true and closing the QDate after the year be selected. but i don't think than a workaround is a good approach to a extension.

If u wanna to Month Picker, we need the ability to disable the Calendar view and switch to the Months views after the year be selected.

again, a workaround is possible, as u can see here.: https://codepen.io/tobias-mesquita/pen/JVyxdJ?editors=1010. but again, a workaround isn't the best approach.

If u really think that is a good feature, u would request that directly in the quasar' repository, so we can create more modes to the QDateTimePicker.

I am gonna make a year picker tomorrow, I guess its possible with the "reason" parameter on input event

Thank you!