0.2.1 • Published 3 years ago

@efournar/datepicker v0.2.1

Weekly downloads
-
License
-
Repository
github
Last release
3 years ago

Vue Datepicker Component

GitHub package.json version npm GitHub

Install with NPM

npm i @efournar/datepicker

Demo

You have to clone the project and compile it in order to run.

git clone https://github.com/e4nar/datetimepicker.git

npm run serve

Include into your project

import Datepicker from '@efournar/datepicker'
import '@efournar/datepicker/dist/datepicker.css'

Vue.use(Datepicker);

Props

   <datepicker 
        v-model=""
        :is-range=""
        :display-icon=""
        :display-preview=""
        :display-time=""
        :disabled-dates=""
        :disabled-month-dates=""
        :disabled-week-days=""
        :min-date=""
        :max-date=""
   />
PropTypeValueDefault
value (v-model)StringA date or datetime string or a range, e.g. 2021-04-25 00:00:00 - 2021-05-15 23:59:59''
isRangeBooleanEnable this flag when in rangefalse
displayIconBooleanEnable this flag in order to show icon in text fieldtrue
displayPreviewBooleanShows preview of new selection before applying new valuetrue
displayTimeBooleanEnable this flag in case of datetime pickerfalse
disabledDatesArrayDisable specific dates. Array of date strings e.g. '2021-04-25', '2021-03-05'[]
disabledMonthDatesArrayDisable specific days for every month. Array of date strings e.g. '02','15','27'[]
disabledWeekDaysArrayDisable specific days for every week. Array of days, e.g. to disable Saturday and Sunday '1','6'[]
minDateStringDisable dates lower than this date''
maxDateStringDisable dates greater than this date''

License

Datepicker is open-sourced software licensed under the MIT license.

0.2.1

3 years ago

0.2.0

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago