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

Feature Request: Year picker type #7

Open
codegrue opened this issue Apr 12, 2019 · 3 comments
Open

Feature Request: Year picker type #7

codegrue opened this issue Apr 12, 2019 · 3 comments
Labels
enhancement New feature or request

Comments

@codegrue
Copy link

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

@TobyMosque
Copy link
Owner

@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.

@TobyMosque TobyMosque added the enhancement New feature or request label Apr 13, 2019
@lucasfernog
Copy link
Contributor

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

@codegrue
Copy link
Author

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants