0.4.14 • Published 4 years ago

@domak/vue-rangeslider v0.4.14

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

vue-rangeslider

version build Coverage Status MIT downloads stars Your ⭐star⭐ is very helpful!!! Slider component for Vue.js npm Demo

Install

npm i @domak/vue-ragneslider@latest

Usage

// default
<template>
  <RangeSlider></RangeSlider>
</template>

// with props
<template>
  <RangeSlider 
    :handle="{
      color: 'aquamarine',
      width: '20px',
      height: '20px',
    }"
    :min="10"
    :max="90"
  </RangeSlider>
</template>

<script>
import RangeSlider from "@domak/vue-rangeslider";

export default {
  components: {
    RangeSlider
  }
}
</script>

Props

NameTypeDefault ValueDescription
minNumber0Minimum value of slider
maxNumber100Maximum value of slider
sliceNumNumber5Number of slices
widthstring100%Width of rangeslider
heightstringnoneHeight of rangeslider
defaultMinNumber50Default value of min handle
defaultMaxNumber70Default value of max handle
gapNumber5How much gap when moving handle with keyboard
isKeyAllowedbooleanfalseMove handle with keyboard Descriptions
barObject-Bar Option
handleObject-Handle Option
tooltipObject-Tooltip Option
rangeObject-Range Option

Keyboard Movement

TypeKey CodeDescription
left37Move selected handle to left
right39Move selected handle to right
up, backspace38, 8Move to next handle
down, enter40, 13Move to prev handle

Bar option

NameTypeDefault ValueDescription
widthstring100%Width of bar
heightstring10pxHeight of bar
colorstring#000000 blackColor of bar
sliceColorstring#049DBF #049DBFColor of slice inside the bar
sliceTypestringbardot Change slice to dot

Handle Option

NameTypeDefault ValueDescription
widthstring12pxWidth of handle
heightstring12pxHeight of handle
colorstring#D93D4A #D93D4AColor of handle
borderstringnoneBorder of handle
borderRadiusstring50%Border radius of handle

Tooltip Option

NameTypeDefault ValueDescription
widthstring20pxWidth of tooltip
heightstring20pxHeight of tooltip
colorstring#f2c84b #F2C84BColor of tooltip
visibilitybooleanfalsetrue Always shows tooltipfalse Only shows while dragging
borderstringnoneBorder of tooltip
borderRadiusstring30%Border radius of tooltip
textColorstringwhiteText color of tooltip
topstringtooltip.heightDistance between handle and tooltip

Range option

NameTypeDefault ValueDescription
textColorstringblackText color of range
colorstringnoneBackground color of range

Methods

NameDescription
getMinValueGet value of min handle
getMaxValueGet value of max handle

Feel free make a issue for this project

Contact forbid403@naver.com

0.4.14

4 years ago

0.4.13

4 years ago

0.4.11

4 years ago

0.4.10

4 years ago

0.4.9

4 years ago

0.4.8

4 years ago

0.4.5

4 years ago

0.4.4

4 years ago

0.4.7

4 years ago

0.4.6

4 years ago

0.4.3

4 years ago

0.4.1

4 years ago

0.4.0

4 years ago

0.4.2

4 years ago

0.3.15

4 years ago

0.3.14

4 years ago

0.3.13

4 years ago

0.3.12

4 years ago

0.3.11

4 years ago

0.3.10

4 years ago

0.3.8

4 years ago

0.3.7

4 years ago

0.3.9

4 years ago

0.3.6

4 years ago

0.3.5

4 years ago

0.3.4

4 years ago

0.3.3

4 years ago

0.3.2

4 years ago

0.3.1

4 years ago

0.3.0

4 years ago

0.2.0

4 years ago

0.1.79

4 years ago

0.1.78

4 years ago

0.1.77

4 years ago

0.1.76

4 years ago

0.1.75

4 years ago

0.1.74

4 years ago

0.1.73

4 years ago

0.1.72

4 years ago

0.1.71

4 years ago

0.1.70

4 years ago

0.1.68

4 years ago

0.1.69

4 years ago

0.1.67

4 years ago

0.1.65

4 years ago

0.1.66

4 years ago

0.1.64

4 years ago

0.1.63

4 years ago

0.1.52

4 years ago

0.1.53

4 years ago

0.1.54

4 years ago

0.1.55

4 years ago

0.1.56

4 years ago

0.1.57

4 years ago

0.1.58

4 years ago

0.1.59

4 years ago

0.1.51

4 years ago

0.1.60

4 years ago

0.1.61

4 years ago

0.1.62

4 years ago

0.1.50

4 years ago

0.1.49

4 years ago

0.1.48

4 years ago

0.1.45

4 years ago

0.1.46

4 years ago

0.1.47

4 years ago

0.1.44

4 years ago

0.1.42

4 years ago

0.1.43

4 years ago

0.1.41

4 years ago

0.1.40

4 years ago

0.1.39

4 years ago

0.1.36

4 years ago

0.1.37

4 years ago

0.1.38

4 years ago

0.1.35

4 years ago

0.1.32

4 years ago

0.1.33

4 years ago

0.1.34

4 years ago

0.1.30

4 years ago

0.1.31

4 years ago

0.1.29

4 years ago

0.1.28

4 years ago

0.1.27

4 years ago

0.1.26

4 years ago

0.1.25

4 years ago

0.1.24

4 years ago

0.1.23

4 years ago

0.1.22

4 years ago

0.1.21

4 years ago

0.1.20

4 years ago

0.1.19

4 years ago

0.1.16

4 years ago

0.1.17

4 years ago

0.1.18

4 years ago

0.1.13

4 years ago

0.1.14

4 years ago

0.1.15

4 years ago

0.1.10

4 years ago

0.1.11

4 years ago

0.1.12

4 years ago

0.1.9

4 years ago

0.1.8

4 years ago

0.1.7

4 years ago

0.1.4

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.0.1

4 years ago

0.0.0

4 years ago