vue-formulate-datepicker
v0.1.17
Published
Wrapper for using vuejs-datepicker in vue-formulate
Downloads
3,109
Readme
vue-formulate-datepicker
Installation
npm
npm install vue-formulate-datepicker
yarn
yarn add vue-formulate-datepicker
Usage
Add this to your main.js
import VueFormulateDatepickerPlugin from "vue-formulate-datepicker";
// Add styles if need
import "@sum.cumo/vue-datepicker/dist/Datepicker.css";
Vue.use(VueFormulate, {
plugins: [VueFormulateDatepickerPlugin]
});
<template>
<FormulateInput
language="fr"
name="date"
type="datepicker"
v-model="date"
>
</FormulateInput>
</template>
<script>
export default {
name: 'Example',
data() {
return {
date: new Date(),
}
},
}
</script>