0.2.8 • Published 5 years ago

vue-monthly-picker v0.2.8

Weekly downloads
3,244
License
MIT
Repository
github
Last release
5 years ago

vue-monthly-picker

Vue Monthly Picker Components

npm version CircleCI

Checkout demo at https://ittus.github.io/vue-monthly-picker/

Support

Install

npm install vue-monthly-picker --save
import VueMonthlyPicker from 'vue-monthly-picker'
Vue.component('my-component', {
    components: {
        VueMonthlyPicker
    }
});

Usage

<vue-monthly-picker
 v-model="selectedMonth">
</vue-monthly-picker>

Note: v-model binding value need to be a moment object

Available props

PropTypeDefaultDescription
disabledBooleanfalseEnable/disable component
monthLabelsArray['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12']Customize month labels
placeHolderString''Place holder when value is null
minmomentnullMinimum time to select
maxmomentnullMaximum time to select
dateFormatStringYYYY/MMDisplay format.
valuemomentnullMoment value of selected month and year
alignmentStringleftAlignment of input value, possible value: left, right, center
selectedBackgroundColorString#007bffBackground color of selected value. It can be HTML color name (red, green, blue) or hexa color code (#00FF00, #0000FF)
clearOptionBooleantrueShow/Hide clear option

Events

EventParamsDescription
selectedselected month in momentA month has been selected

Build Setup

# install dependencies
yarn install

# serve with hot reload at localhost:8080
yarn dev

# build for production with minification
yarn build

# run all tests
yarn test
0.2.8

5 years ago

0.2.7

5 years ago

0.2.6

5 years ago

0.2.5

6 years ago

0.2.4

6 years ago

0.2.3

6 years ago

0.2.2

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.9

6 years ago

0.1.8

6 years ago

0.1.7

6 years ago

0.1.6

6 years ago

0.1.5

6 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago