vue-number-picker

0.0.1 • Public • Published

vue-number-picker License

Number picker component for vue.js

Install & basic usage

npm install vue-number-picker
<template>
  <div>
    <number-picker
      :value="quantity"
      :min="1"
      :max="10"
      @update="updateQuantity">
    </number-picker>
  </div>
</template>
import NumberPicker from 'vue-number-picker'
 
export default {
  components: { NumberPicker },
  data () {
    return {
      quantity: 3
    }
  },
  methods: {
    updateQuantity (newQuantity) {
      this.quantity = newQuantity
    }
  }
}

Contributing

# serve with hot reload at localhost:8080
npm run dev
 
# distribution build with minification
npm run build
 
# run unit tests
npm run unit
 
# run all tests
npm test

For detailed explanation on how things work, checkout the guide and docs for vue-loader.

License

MIT

Copyright (c) 2016 Marcelo Fraga

Readme

Keywords

none

Package Sidebar

Install

npm i vue-number-picker

Weekly Downloads

3

Version

0.0.1

License

MIT

Last publish

Collaborators

  • mfraga