| Name | Type | Default |
|
buttonsPosition
# |
String
|
both
|
Sets or gets scroll buttons position.
Possible Values:
'both'
'left'
'right'
<template>
<JqxSlider ref="mySlider" :height="100" :buttonsPosition="'left'" />
</template>
<script setup>
import JqxSlider from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxslider.vue';
</script>
|
|
disabled
# |
Boolean
|
false
|
Sets or gets whether the slider is disabled.
<template>
<JqxSlider ref="mySlider" :height="100" :disabled="true" />
</template>
<script setup>
import JqxSlider from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxslider.vue';
</script>
|
|
height
# |
Number | String
|
35
|
Sets or gets the slider's height.
<template>
<JqxSlider ref="mySlider" :height="100" />
</template>
<script setup>
import JqxSlider from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxslider.vue';
</script>
|
|
layout
# |
String
|
"normal"
|
Sets or gets the slider's layout.
Possible Values:
'normal'
'reverse'-the slider is filled from right-to-left(horizontal slider) and from top-to-bottom(vertical slider)
<template>
<JqxSlider ref="mySlider" :height="100" :layout="'reverse'" />
</template>
<script setup>
import JqxSlider from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxslider.vue';
</script>
|
|
mode
# |
String
|
default
|
Sets or gets slider's mode.
Possible Values:
'default'- the slider's thumb can be dragged smoothly ( like a scrollbar )
'fixed'- the thumb is dragged with a 'step' specified by the 'step' property.
<template>
<JqxSlider ref="mySlider" :height="100" :mode="'fixed'" />
</template>
<script setup>
import JqxSlider from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxslider.vue';
</script>
|
|
minorTicksFrequency
# |
Number
|
1
|
Sets or gets slider's minor ticks frequency.
<template>
<JqxSlider ref="mySlider" :height="100" :showMinorTicks="true" :minorTicksFrequency="1" />
</template>
<script setup>
import JqxSlider from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxslider.vue';
</script>
|
|
minorTickSize
# |
Number
|
4
|
Sets or gets slider's minor ticks size.
<template>
<JqxSlider
ref="mySlider"
:height="100"
:showMinorTicks="true"
:minorTicksFrequency="1"
:minorTickSize="10"
/>
</template>
<script setup>
import JqxSlider from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxslider.vue';
</script>
|
|
max
# |
Number
|
10
|
Sets or gets slider's maximum value.
<template>
<JqxSlider ref="mySlider" :height="100" :max="30" />
</template>
<script setup>
import JqxSlider from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxslider.vue';
</script>
|
|
min
# |
Number
|
0
|
Sets or gets slider's minimum value.
<template>
<JqxSlider ref="mySlider" :height="100" :min="5" />
</template>
<script setup>
import JqxSlider from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxslider.vue';
</script>
|
|
orientation
# |
String
|
'horizontal'
|
<template>
<JqxSlider ref="mySlider" :height="100" :orientation="'vertical'" />
</template>
<script setup>
import JqxSlider from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxslider.vue';
</script>
|
|
rangeSlider
# |
Boolean
|
false
|
Sets or gets whether the slider is displayed as a range slider and has 2 thumbs. This allows the user to select a range of values. By default, end-users can select only a single value.
<template>
<JqxSlider ref="mySlider" :height="100" :rangeSlider="true" />
</template>
<script setup>
import JqxSlider from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxslider.vue';
</script>
|
|
rtl
# |
Boolean
|
false
|
Sets or gets a value indicating whether widget's elements are aligned to support locales using right-to-left fonts.
<template>
<JqxSlider ref="mySlider" :height="100" :rtl="true" />
</template>
<script setup>
import JqxSlider from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxslider.vue';
</script>
|
|
step
# |
Number
|
1
|
Sets or gets the slider's step when the user is using the keyboard arrows, slider increment and decrement buttons or the mouse wheel for changing the slider's value.
<template>
<JqxSlider ref="mySlider" :height="100" :step="3" />
</template>
<script setup>
import JqxSlider from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxslider.vue';
</script>
|
|
showTicks
# |
Boolean
|
true
|
Sets or gets whether ticks will be shown.
<template>
<JqxSlider ref="mySlider" :height="100" :showTicks="false" />
</template>
<script setup>
import JqxSlider from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxslider.vue';
</script>
|
|
showMinorTicks
# |
Boolean
|
false
|
Sets or gets whether minor ticks will be shown.
<template>
<JqxSlider ref="mySlider" :height="100" :showMinorTicks="true" />
</template>
<script setup>
import JqxSlider from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxslider.vue';
</script>
|
|
showTickLabels
# |
Boolean
|
false
|
Sets or gets whether major tick labels will be shown.
<template>
<JqxSlider ref="mySlider" :height="100" :showTickLabels="true" />
</template>
<script setup>
import JqxSlider from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxslider.vue';
</script>
|
|
showButtons
# |
Boolean
|
true
|
Sets or gets whether the scroll buttons will be shown.
<template>
<JqxSlider ref="mySlider" :height="100" :showButtons="false" />
</template>
<script setup>
import JqxSlider from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxslider.vue';
</script>
|
|
showRange
# |
Boolean
|
true
|
Sets or gets whether the slider range background is displayed. This is the fill between the slider's left button and the slider's thumb to indicate the selected value. In range slider mode, the space between the handles is filled to indicate the selected values.
<template>
<JqxSlider ref="mySlider" :height="100" :showRange="false" />
</template>
<script setup>
import JqxSlider from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxslider.vue';
</script>
|
|
template
# |
String
|
'default'
|
Determines the template as an alternative of the default styles.
Possible Values:
'default' - the default template. The style depends only on the "theme" property value.
'primary' - dark blue style for extra visual weight.
'success' - green style for successful or positive action.
'warning' - orange style which indicates caution.
'danger' - red style which indicates a dangerous or negative action.
'info' - blue button, not tied to a semantic action or use.
<template>
<JqxSlider ref="mySlider" :height="100" :template="'success'" />
</template>
<script setup>
import JqxSlider from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxslider.vue';
</script>
|
|
theme
# |
String
|
''
|
Sets the widget's theme.
<template>
<JqxSlider ref="mySlider" :height="100" :theme="'material'" />
</template>
<script setup>
import JqxSlider from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxslider.vue';
</script>
|
|
ticksPosition
# |
String
|
both
|
Sets or gets slider's ticks position.
Possible Values:
'top'
'bottom'
'both'
<template>
<JqxSlider ref="mySlider" :height="100" :ticksPosition="'bottom'" />
</template>
<script setup>
import JqxSlider from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxslider.vue';
</script>
|
|
ticksFrequency
# |
Number
|
2
|
Sets or gets slider's major ticks frequency.
<template>
<JqxSlider ref="mySlider" :height="100" :ticksFrequency="1" />
</template>
<script setup>
import JqxSlider from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxslider.vue';
</script>
|
|
tickSize
# |
Number
|
7
|
Sets or gets slider's major ticks size.
<template>
<JqxSlider ref="mySlider" :height="100" :tickSize="10" />
</template>
<script setup>
import JqxSlider from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxslider.vue';
</script>
|
|
tickLabelFormatFunction
# |
Function
|
null
|
Sets or gets the major ticks labels formatting function.
<template>
<JqxSlider
ref="mySlider"
:height="100"
:tickLabelFormatFunction="tickLabelFormatFunction"
:showTickLabels="true"
/>
</template>
<script setup>
import JqxSlider from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxslider.vue';
function tickLabelFormatFunction(value) {
return value;
}
</script>
|
|
tooltip
# |
Boolean
|
false
|
Sets or gets whether the slider tooltip will be shown.
<template>
<JqxSlider ref="mySlider" :height="100" :tooltip="true" />
</template>
<script setup>
import JqxSlider from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxslider.vue';
</script>
|
|
tooltipHideDelay
# |
Number
|
500
|
Sets or gets the tooltip's hide delay.
<template>
<JqxSlider ref="mySlider" :height="100" :tooltip="true" :tooltipHideDelay="2000" />
</template>
<script setup>
import JqxSlider from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxslider.vue';
</script>
|
|
tooltipPosition
# |
String
|
"near"
|
Sets or gets the tooltip's position. Possible values: "near", "far"
<template>
<JqxSlider ref="mySlider" :height="100" :tooltip="true" :tooltipPosition="'far'" />
</template>
<script setup>
import JqxSlider from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxslider.vue';
</script>
|
|
tooltipFormatFunction
# |
Function
|
null
|
Sets or gets the tooltip's tooltip formatting.
<template>
<JqxSlider
ref="mySlider"
:height="100"
:tooltipFormatFunction="tooltipFormatFunction"
:tooltip="true"
/>
</template>
<script setup>
import JqxSlider from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxslider.vue';
function tooltipFormatFunction(value) {
return value.toPrecision(2);
}
</script>
|
|
value
# |
Number
|
0
|
Sets or gets slider's value. This property will be an object with the following structure { rangeStart: range_start, rangeEnd: range_end } if the slider is range slider otherwise it's going to be a number.
<template>
<JqxSlider ref="mySlider" :height="100" :value="5" />
</template>
<script setup>
import JqxSlider from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxslider.vue';
</script>
|
|
values
# |
Array
|
[0, 10]
|
Sets or gets range slider's values.The 'rangeSlider' property should be set to true.
<template>
<JqxSlider ref="mySlider" :height="100" :rangeSlider="true" :values="[5, 15]" />
</template>
<script setup>
import JqxSlider from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxslider.vue';
</script>
|
|
width
# |
Number | String
|
300
|
Sets or gets the slider's width.
<template>
<JqxSlider ref="mySlider" :height="100" :width="300" />
</template>
<script setup>
import JqxSlider from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxslider.vue';
</script>
|
|
|
|
change
# |
Event
|
|
This event is triggered when the value of the slider is changed.
Code examples #
Bind to the change event of jqxSlider.
<template>
<JqxSlider ref="mySlider" @change="onChange($event)" :height="100" />
</template>
<script setup>
import JqxSlider from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxslider.vue';
function onChange(event) {
alert('do something...');
}
</script>
|
|
slide
# |
Event
|
|
This event is triggered when the user is dragging the sliders thumb.
Code examples #
Bind to the slide event of jqxSlider.
<template>
<JqxSlider ref="mySlider" @slide="onSlide($event)" :height="100" />
</template>
<script setup>
import JqxSlider from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxslider.vue';
function onSlide(event) {
alert('do something...');
}
</script>
|
|
slideStart
# |
Event
|
|
This event is triggered when the user start dragging slider's thumb.
Code examples #
Bind to the slideStart event of jqxSlider.
<template>
<JqxSlider ref="mySlider" @slideStart="onSlideStart($event)" :height="100" />
</template>
<script setup>
import JqxSlider from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxslider.vue';
function onSlideStart(event) {
alert('do something...');
}
</script>
|
|
slideEnd
# |
Event
|
|
This event is triggered when the user have dragged the slider's thumb and drop it.
Code examples #
Bind to the slideEnd event of jqxSlider.
<template>
<JqxSlider ref="mySlider" @slideEnd="onSlideEnd($event)" :height="100" />
</template>
<script setup>
import JqxSlider from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxslider.vue';
function onSlideEnd(event) {
alert('do something...');
}
</script>
|
|
|
| Name | Arguments | Return Type |
|
destroy
# |
None
|
None
|
Destroys the widget.
<template>
<JqxSlider ref="mySlider" :height="100" />
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxSlider from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxslider.vue';
const mySlider = ref(null);
onMounted(() => {
mySlider.value.destroy();
});
</script>
|
|
decrementValue
# |
None
|
None
|
Decreases the jqxSlider's value with the value of the 'step' property.
<template>
<JqxSlider ref="mySlider" :height="100" />
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxSlider from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxslider.vue';
const mySlider = ref(null);
onMounted(() => {
mySlider.value.value = 5;
mySlider.value.decrementValue();
});
</script>
|
|
disable
# |
None
|
None
|
Disabling the slider.
<template>
<JqxSlider ref="mySlider" :height="100" />
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxSlider from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxslider.vue';
const mySlider = ref(null);
onMounted(() => {
mySlider.value.disable();
});
</script>
|
|
enable
# |
None
|
None
|
Enables the slider.
<template>
<JqxSlider ref="mySlider" :height="100" />
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxSlider from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxslider.vue';
const mySlider = ref(null);
onMounted(() => {
mySlider.value.disabled = true;
mySlider.value.enable();
});
</script>
|
|
focus
# |
None
|
None
|
Focuses the widget.
<template>
<JqxSlider ref="mySlider" :height="100" />
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxSlider from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxslider.vue';
const mySlider = ref(null);
onMounted(() => {
mySlider.value.focus();
});
</script>
|
|
getValue
# |
None
|
Number
|
Gets the slider's value. The returned value is a number or an object. If the Slider is a range slider, the method returns an object with the following fields: rangeStart - the range's start value and rangeEnd - the range's end value..
<template>
<JqxSlider ref="mySlider" :height="100" />
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxSlider from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxslider.vue';
const mySlider = ref(null);
onMounted(() => {
const value = mySlider.value.getValue();
});
</script>
|
|
incrementValue
# |
None
|
None
|
Increases the jqxSlider's value with the value of the 'step' property.
<template>
<JqxSlider ref="mySlider" :height="100" />
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxSlider from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxslider.vue';
const mySlider = ref(null);
onMounted(() => {
mySlider.value.incrementValue();
});
</script>
|
|
setValue
# |
index
|
None
|
Sets the jqxSlider's value. When the slider is not in range slider mode, the required parameter for the value is a number which should be in the 'min' - 'max' range. Possible value types in range slider mode- array, object or two numbers.
<template>
<JqxSlider ref="mySlider" :height="100" />
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxSlider from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxslider.vue';
const mySlider = ref(null);
onMounted(() => {
mySlider.value.setValue(5);
});
</script>
|
|
val
# |
value
|
String
|
Sets or gets the value.
<template>
<JqxSlider ref="mySlider" :height="100" />
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxSlider from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxslider.vue';
const mySlider = ref(null);
onMounted(() => {
const value = mySlider.value.val();
});
</script>
|