vwc-datepicker 2.40.0
Install from the command line:
Learn more about npm packages
$ npm install @vonage/vwc-datepicker@2.40.0
Install via package.json:
"@vonage/vwc-datepicker": "2.40.0"
About this version
The vwc-datepicker
component wraps a date-containing vwc-textfield
and enables easy date picking.
Bases on Flatpicker.
<vwc-datepicker closeOnSelect clickOpen allowInput dateFormat="d/m/Y">
<vwc-textfield value="13/12/1999"></vwc-textfield>
</vwc-datepicker>
The datepicker will parse the textfield's content according to its dateFormat
attribute and present a picker to the user. After a date is selected, the picker will set the textfield's value according to that same dateFormat
.
In order to set/get date values one should directly alter the textfield.