From 488c8a5087b81f0cd2bbb25c0b4ac63371b2a3f4 Mon Sep 17 00:00:00 2001 From: HerrHase Date: Fri, 19 May 2023 17:13:09 +0200 Subject: [PATCH] adding --- README.md | 36 +++++++++++++++++++++++++++++++++--- 1 file changed, 33 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 3448b06..3752f21 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,10 @@ -# datepicker +# Tiny Components - datepicker -Datepicker +Datepicker for show Month and select a Single day. + +Created with [Riot.js](https://riot.js.org) + +Using Styles for UI from [Plain-UI](https://plain-ui.com), Date will be handle by [Day.js](https://day.js.org/en/) and Events with [Observable](https://github.com/riot/observable) Source: [https://gitea.node001.net/tiny-components/datepicker](https://gitea.node001.net/tiny-components/datepicker) Mirror: [https://github.com/node001-net/tiny-components-datepicker](https://github.com/node001-net/tiny-components-datepicker) @@ -28,9 +32,35 @@ yarn add @tiny-components/datepicker ``` +For starting weeks on Sunday, + +``` + +``` + +For setting date on start, + +``` + +``` + +## Events + +If Date will "change", + +``` +import store from './store.js' + +store.on('change', (data) => { + console.log(data.date.format('YYYY-MM-DD')) +}) + +``` + ## i18n -[List of locales](https://github.com/iamkun/dayjs/tree/dev/src/locale) +Names of Days and Months will be used from Day.js, [here is a list of supported languages](https://github.com/iamkun/dayjs/tree/dev/src/locale). +Change language is only possible if you add change locale globally. ``` import de from 'dayjs/locale/de'