Answer the question
In order to leave comments, you need to log in
How to make date selection restriction in vaadin 8?
Good afternoon!
I'm studying Vaadin, there is a dateField element, is it possible to somehow limit the selection of dates only until today, for example, that is, so that future dates cannot be selected.
What parameter is responsible for this?
Thank you very much in advance!
Answer the question
In order to leave comments, you need to log in
In theory, this can be done using the setRangeEnd property
dateField.setRangeStart(fromDate);
dateField.setRangeEnd(toDate);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question