0.1.4 • Published 4 years ago
ts-date-picker v0.1.4
TS Date Picker
Install
npm i ts-date-picker
Setup
const picker: DatePicker = new DatePicker({
currentDay: new Date(),
onChange: handler,
picker: {
inputHeight: ...
},
(header/content/arrows/dateBox/footer): {
styles: {
// Your custom styles
}
},
todayButton: {
enabled: true,
text: "Today",
styles: {
// Styles
}
}
}, daysList[], monthsList[])
picker.mount("#input", "#wrapper")
Demo
npm run demo