Vue.js component for Flatpickr datetime picker :calendar:
Vue.js component for Flatpickr date-time picker.
| Vue.js version | Package version | Branch | | :--- | :---: | ---: | | 2.x | 8.x | 8.x | | 3.x | 9.x | master |
v-modelvalue
wrap:truein config and component will take care of all
# yarn yarn add vue-flatpickr-componentnpm
npm install vue-flatpickr-component
Using Bootstrap input group and Font Awesome icons ```html
#### As plugin ```js import {createApp} from 'vue'; import VueFlatPickr from 'vue-flatpickr-component'; import 'flatpickr/dist/flatpickr.css'; // Your app initialization logic goes here const app = createApp().mount('#app') app.use(VueFlatPickr);
This will register a global component
html
:configlike original flatpickr do.
The component accepts these props:
| Attribute | Type | Default | Description | | :--- | :---: | :---: | :--- | | v-model | String / Date Object / Array / Timestamp / null |
null| Set or Get date-picker value (required) | | config | Object |
{ wrap:false }| Flatpickr configuration options| | events | Array | Array of sensible events | Customise the events to be emitted|
12.14.0>=and yarn
>=1.xpre-installed
yarn install
yarn start
http://localhost:9000in your default web browser
__test__folder.
yarn test
Please see CHANGELOG for more information what has changed recently.
MIT License