You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

vue-scroll-picker

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-scroll-picker

scroll picker component for Vue.js.

0.0.5
Source
npmnpm
Version published
Weekly downloads
6.3K
0.65%
Maintainers
1
Weekly downloads
 
Created
Source

Vue Scroll Picker

Scroll Picker Component for Vue2. Support All Gestures of Mouse(even also MouseWheel!) and Touch.

Demo

Installation

npm install vue-scroll-picker --save

Usage

ES6

import Vue from 'vue'
import VueScrollPicker from 'vue-scroll-picker'

Vue.use(VueScrollPicker)

or

import Vue from 'vue'
import {ScrollPicker, ScrollPickerGroup} from 'vue-scroll-picker'

new Vue({
    components: {
        ScrollPicker,
        ScrollPickerGroup
    }
})

Globals

<html>
<head>
  ...
</head>
<body>
  <div id="app">
    <scroll-picker :options="[1, 2, 3, 4, 5]"></scroll-picker>
  </div>

  <script src="path/to/vue.js"></script>
  <script src="path/to/vue-scroll-picker.js"></script>
  <script>
    new Vue({
      el: '#app'
    })
  </script>
</body>
</html>

Example

  • Demo
  • Sources

Options

Props

PropsTypeDefaultDescription
valuemixednullset value
placeholderStringnullplaceholder
optionsArray[]options of value. example, ["10KG", "20KG", "30KG"] or [{value: 10, name: "10KG"}, {value: 20, name: "20KG"}]

Event

  • @input : you can use v-model :-)

FAQs

Package last updated on 19 Sep 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts