1.0.7 • Published 3 years ago

month-navigation-vue v1.0.7

Weekly downloads
10
License
MIT
Repository
github
Last release
3 years ago

month-navigation-vue

Vue component for month navigation with navigation arrows.

npm.io

Installation

npm install month-navigation-vue --save

Usage

<template>
  <month-navigation v-model="value" />
</template>

<script>
import MonthNavigation from 'month-navigation-vue'

export default {
  components: {
    MonthNavigation
  },
  data () {
    return {
      value: null // Default selected date
    }
  }
}
</script>

Add styles for component to your project

import 'month-navigation-vue/dist/month-navigation-vue.css'

Options

PropsTypeDefaultDescription
valueDatenullDefault selected date
monthsArray{}Array of month names
backwardBoundValueDatenullLeft bounded date when backward arrow will invisible.
forwardBoundValueDatenullLeft bounded date when forward arrow will invisible.