loading... Pacem JS

Dropdown Calendar

PacemCalendarPickerElement is the optimal webcomponent for date picking.

Formattable and Autogeneratable

PacemCalendarPickerElement value can be formatted given straight attribute or relevant metadata.

[ {"prop": "bday", "type": "date", "display": { "name": "Birthday", "ui": "calendar", "watermark": "date before 2021..." }, "extra": { "disabledRanges": [{ "from": "2021-01-01" }], "format": { "month": "short", "year": "numeric", "day": "2-digit", "weekday": "short" } } , "validators": [{ "type": "required", "errorMessage": "Required field" }, {"type": "range", "errorMessage": "No way, you can't'", "params": { "max": "2020-12-31"} }] } ]