Without jQuery-based date component with support for date ranges, muitiple calendars and more. :kissing_heart:
Without jQuery-based date component with support for date ranges, muitiple calendars and more.
true
true
input element
(onfocus show the DatePicker)'today'
'2017-04-15'
false
'EN'
| 'CN'
'EN'
CN
will use Chinese, for EN
will use English'top'
| 'right'
| 'left'
| 'bottom'
'bottom'
[1970, 2030]
[2000, 2020]
calendar.css
and calendar.js
<input type="text" id="datePicker">
<span id="calendar"></span>
```js
var dateComponent = new DatePicker({
el: document.querySelector(‘#calendar’),
onchange: function (curr) {
dateInput.value = curr;
}
});
var dateInput = document.querySelector(‘#datePicker’);
dateInput.onfocus = function () {
dateComponent.show();
};
```