0.2.9 • Published 2 years ago

v-month-picker v0.2.9

Weekly downloads
2
License
MIT
Repository
github
Last release
2 years ago

v-month-picker

Software License Latest Version on NPM npm Vue 2.x

Description

Simple year and month picker inspired by vuetify's monthpicker. Vue component compatible with Vue 2.x

Demo

To view a demo online: CodeSandBox To view demo examples locally clone the repo and run npm install && npm run serve

Install

Use npm: npm i v-month-picker --save

Add to project

global

// main.js
import MonthPicker from "v-month-picker";
Vue.component('MonthPicker', MonthPicker);

locale

import MonthPicker from 'v-month-picker';

export default {
  components: {
    MonthPicker
  }
  // your code...
}

Usage

Below code in the <template>:

<MonthPicker horizontal-align="left" vertical-align="bottom" locale="en" v-model="date"/>

Available props

PropTypeDefaultDescription
v-model (required)StringDate in ISO format
horizontal-alignStringbottomHorizontal positioning of the popup
vertical-alignStringcenterVertical positioning of the popup
localeStringruTranslation for months
first-yearString1950Start year
last-yearString2049End year

Dependencies

License

MIT

This is my first npm package, please don't hit me ;)

0.2.1

2 years ago

0.2.0

2 years ago

0.2.7

2 years ago

0.1.8

2 years ago

0.2.6

2 years ago

0.1.7

2 years ago

0.2.9

2 years ago

0.2.8

2 years ago

0.1.9

2 years ago

0.2.3

2 years ago

0.1.4

2 years ago

0.2.2

2 years ago

0.2.5

2 years ago

0.2.4

2 years ago

0.1.5

2 years ago

1.0.0

5 years ago