ts-date-picker
TypeScript icon, indicating that this package has built-in type declarations

0.1.4 • Public • Published

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

Package Sidebar

Install

npm i ts-date-picker

Weekly Downloads

6

Version

0.1.4

License

MIT

Unpacked Size

33.8 kB

Total Files

31

Last publish

Collaborators

  • arslanoov