Skip to content

cogor/vue-formulate-datepicker

Repository files navigation

vue-formulate-datepicker

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>

Documentation

About

Wrapper for using vuejs-datepicker in vue-formulate

Resources

License

Stars

Watchers

Forks

Releases

No releases published