Directory

← Back

DateRangeField Add-on

A date-range field to input date ranges

Author

Contributors

Rating

A date-range field to input date ranges.

Sample code

DateRangeField dateRangeField = new DateRangeField("Date Range Field");
dateRangeField.getBeginDateField().setPlaceholder("Begin date");
dateRangeField.getEndDateField().setPlaceholder("End date");

LocalDate today = LocalDate.now();
dateRangeField.addShortcut("This week", field -> field.setRange(today.with(DayOfWeek.MONDAY), today.with(DayOfWeek.SUNDAY)));

Compatibility

(Loading compatibility data...)

Was this helpful? Need more help?
Leave a comment or a question below. You can also join the chat on Discord or ask questions on StackOverflow.

Version

Update to Vaadin 8.0.0.rc1

Released
2017-02-14
Maturity
EXPERIMENTAL
License
Apache License 2.0

Compatibility

Framework
Vaadin 8.0+
Browser
Browser Independent
Online