Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/arthur-arslanov/date-picker


https://github.com/arthur-arslanov/date-picker

date datepicker library picker typescript

Last synced: 8 days ago
JSON representation

Awesome Lists containing this project

README

        

# 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