0.1.5 • Published 2 years ago
@creaditor/datepicker v0.1.5
Getting Started
Example
const instance = new Datepicker(document.getElementById('element'), {
lang:"he",
mode:"time",
disablePast:true,
value:Date.now(),
onChange: (newValue) => {
{...do something with the value}
}
});
SetValue
instance.setValue("2021-12-05");
SetValue via attribute
const datepicker = document.getElementById('element');
datepicker.setAttribute("value","2021-12-05");