Closed Alexenon closed 3 hours ago
A mode where the DatePicker component only allows the user to select a month and year (ignoring the specific day).
A mode where the DatePicker allows users to select just a year.
There is already such question on Vaadin Forums, but there is no good answer for this.
I know that there is a way to achieve this, by using native HTML component, but I'd like to have a vaadin component with the same functionality.
<input type="month" id="start" name="start" min="2018-03" value="2018-05" />
I don't know which exact Java API is the best. Examples:
datePicker.displayMode(Timestamp.MONTH)
datePicker.hide(Timestamp.DAYS)
MonthPicker
No response
Any workarounds will be great too 🗡️
Duplicate of https://github.com/vaadin/web-components/issues/1865. Please see the discussion in that issue.
Proposed Features:
Month Picker Mode:
A mode where the DatePicker component only allows the user to select a month and year (ignoring the specific day).
Year Picker Mode:
A mode where the DatePicker allows users to select just a year.
There is already such question on Vaadin Forums, but there is no good answer for this.
Describe the solution you'd like
I know that there is a way to achieve this, by using native HTML component, but I'd like to have a vaadin component with the same functionality.
I don't know which exact Java API is the best. Examples:
datePicker.displayMode(Timestamp.MONTH)
datePicker.hide(Timestamp.DAYS)
MonthPicker
Describe alternatives you've considered
No response
Additional context
Any workarounds will be great too 🗡️