DatePicker

DatePicker

Date picker is a plugin that adds the function of selecting time without the necessity of using custom JavaScript code.

Examples

Pro Component

Default DatePicker example.

html
<div class="datepicker-container">
<input name="foo" class="date-picker-input" style="width: 25rem" />
</div>
Script
<script>
const elem = document.querySelector('input[name="foo"]');
const datepicker = new CDB.Datepicker(elem, {});
</script>