0.2.0 • Published 6 years ago

@willsoto/vue-pickr v0.2.0

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

Vue Pickr

pipeline status coverage report

Vue component wrapping Pickr

Installation

npm install @willsoto/vue-pickr pickr-widget
yarn add @willsoto/vue-pickr pickr-widget

Usage

Template

<div>
  <vue-pickr @pickr="pickr" :options="options"></vue-pickr>
</div>

Script

import VuePickr from '@willsoto/vue-pickr';

export default {
  name: 'my-component',
  components: {
    VuePickr
  },
  data() {
    return {
      // gives you access to the pickr instance
      // https://github.com/Simonwep/pickr#methods
      pickr: null,
      // https://github.com/Simonwep/pickr#optional-options
      options: {}
    };
  }
};
0.2.0

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago