Skip to content

Slider-Light

vue
<fv-slider :mininum="9" :maxinum="30" :showLabel="true">
<template v-slot="prop" >
  <span>{{prop.modelValue}}</span>
</template>
</fv-slider>

Slider-Dark

vue
<fv-slider theme="dark">
</fv-slider>

Slider-With-Tick-Mark

vue
<fv-slider :scale="20" :unit="2">
</fv-slider>

Slider-With-Label

vue
<fv-slider :scale="20" :showLabel="true" :unit="20">
<template v-slot="prop" >
  <span>{{prop.modelValue}}</span>
</template>
</fv-slider>

Slider-With-Vertical

vue
<fv-slider v-model="value" :scale="20" :unit="20" :vertical="true" :showLabel="true" @change="change" @click="click">
</fv-slider>

Slider: 50% Change: 0 Click: 0

Silder-Disabled

vue
<fv-slider disabled>
</fv-slider>

Silder-Custom-Style

vue
<fv-slider v-model="value" style="width:150px;" showLabel color="#2ed573" background="white" iconWrapperBackground="transparent">
<template v-slot="prop">
{{prop.modelValue}}%
</template>
</fv-slider>

Properties


PropertyTypeRequiredDefaultDescription
modelValueNo0The component value used by v-model.
v-model/valueNumberNo0See the Slider v-model/value option.
themestringNo'global'No
disabledbooleanNofalseWhether the component is disabled.
unitnumberNo1See the Slider unit option.
mininumnumberNo0See the Slider mininum option.
maxinumnumberNo100See the Slider maxinum option.
iconstringNo'CircleFill' // default:"StatusCircleOuter"MS-icon
verticalbooleanNofalseSee the Slider vertical option.
showLabelbooleanNofalseSee the Slider showLabel option.
scaleNofalsefalse
colorstringNo''See the Slider color option.
backgroundstringNo''See the Slider background option.
iconWrapperBackgroundstringNo''See the Slider iconWrapperBackground option.
langstringNo"global"See the Slider lang option.

Events


EventArgumentsDescription
clickeventSee the component click option.
changeeventSee the component change option.

Slots

template
<template v-slot="prop">
  <span>{{prop.modelValue}}</span>
<\template>

MIT Licensed