0.1.3 • Published 5 years ago

quasar-monthpicker v0.1.3

Weekly downloads
52
License
MIT
Repository
github
Last release
5 years ago

quasar-monthpicker

A month picker for Quasar, the Vue.js framework

It looks and behaves very much like Quasar's date picker:

Screenshot of Quasar MonthPicker

Install

npm install quasar-monthpicker --save

Quasar's Button component is required for this month picker to work. In quasar.conf.js:

framework: {
  components: ['QBtn']
}

Usage

import monthpicker from 'quasar-monthpicker'
export default {
	name: 'myApp',
	components: { monthpicker }
}
<monthpicker
	color="purple"
	locale="en-US"
	:min="yourDateObject"
	:max="yourDateObject"
	v-model="yourDateObject"
></monthpicker>

Available props

PropTypeDefaultDescription
colorStringnone, defaults to Quasar's color for buttonsColor of the selected month
localeStringnone, defaults to local languageThe locale passed to Javascript's toLocaleTimeString() function for the names of months
maxDate objectnoneMaximum month to select
minDate objectnoneMinimum month to select

Contribute

Merge requests are welcome to help improve this component.