Package Exports
- v-range-flyout
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 (v-range-flyout) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
v-range-flyout


A vue component that wraps a input type=number with a customizable range slider flyout.
Installation
npm i --save v-range-flyoutInitialize in main.js
import rangeFlyout from "v-range-flyout";
Vue.use(rangeFlyout);Options (element attributes)
- v-model or value : Number - Required. String values will be converted to Number.
- min: Number - Required
- max: Number - Required
- sliderHeight: Number - Optionally set the height of the slideable area of the flyout.
- incr: Number - Optionally set value increment (step attribute in input[type=number]) the control should snap to a multiple of.
- slideBackground: String - used to show color scales as gradients.
- inputClass: String - Optional css class to add to the input element
- wrapperClass: String - Optional wrapper class for the component wrapper div
- flyoutClass: String - Optional wrapper class for the flyout wrapper div
Events
- @input or @change: Fires when value changes. Returns the numeric value.
- @active: Fires when flyout is toggled or input changes focus state. A boolean is passed to indicate "active" state.
Usage Examples
<template>
<div class="wrap">
<div class="control">
<label>Choose a value between 0 and 100</label>
<range-flyout :min="-50" :max="50" v-model="chosenVal"/>
</div>
</div>
</template>
<script>
export default {
data:() => { return {chosenVal:50} }
}
</script>
<style lang="scss">
.wrap{
.control{
display: inline-block;
padding:12px;
margin-right:50px;
label{
display:block;
}
}
}
</style>Disclaimer
This is in active development. Stability not guaranteed. Please file github issues for bugs/features.