Package Exports
- @jeremyhamm/vue-slider
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@jeremyhamm/vue-slider) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Vue Slider
A customizable horizontal slide menu for VueJs 2+
Installation
NPM
npm i @jeremyhamm/vue-slider
Browser
<script src="https://unpkg.com/@jeremyhamm/vue-slider"></script>
Useage
Mount with global
import Vue from 'vue'
import Slider from '@jeremyhamm/vue-slider'
Vue.use(Slider)
Mount with component
import Slider from '@jeremyhamm/vue-slider'
export default {
components: {
'slider': Slider
}
}
Use in component
<div id="app" ref="app">
<slider :width="300" format="push" direction="left" :opacity="0.15"></slider>
</div>
Important
- In order to use
full
mode the parent element needs to containref="app"
Properties
Name | Type | Default | Options |
---|---|---|---|
width | Number |
300 |
Menu Width (px) |
format | String |
overlay |
push, full, overlay |
direction | String |
left |
left, right |
opacity | Number |
0 |
0.00 - 1.00 Representing css opacity |