Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/arthur-arslanov/date-picker
- Owner: Arthur-Arslanov
- Created: 2021-05-02T15:34:09.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-05-03T16:07:34.000Z (over 3 years ago)
- Last Synced: 2024-11-13T20:41:00.524Z (about 1 month ago)
- Topics: date, datepicker, library, picker, typescript
- Language: TypeScript
- Homepage:
- Size: 515 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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