Skip to content

v1.2.0

Compare
Choose a tag to compare
@samiheikki samiheikki released this 30 Nov 10:26
· 726 commits to master since this release

New features in 1.2

Keyboard input

Allow the end user to type the date in the input in addition to selecting it from the dropdown calendar.
The feature is enabled by default, and you can customize the parsing by implementing the i18n.parseDate function. To disable keyboard input, set i18n.parseDate to undefined.

datePicker.set('i18n.parseDate', function(dateString) {
  // Parse the 'dateString' and return a new Date object if a match is found
});

Min and max date limits

Prevent the end user from selecting dates before or after certain dates.

<vaadin-date-picker min="2016-01-01" max="2016-12-31"></vaadin-date-picker>

Week numbers

Optionally show week numbers in the dropdown calendar (only for locales where week starts on Monday).

<vaadin-date-picker show-week-numbers></vaadin-date-picker>