| Name | Type | Default |
|
disabled
# |
Boolean
|
false
|
Sets or gets whether the scrollbar is disabled.
<template>
<JqxScrollBar ref="myScrollBar" :width="180" :height="20" :disabled="true" />
</template>
<script setup>
import JqxScrollBar from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxscrollbar.vue';
</script>
|
|
height
# |
Number | String
|
null
|
Sets or gets height of the scroll bar.
<template>
<JqxScrollBar ref="myScrollBar" :width="180" :height="20" />
</template>
<script setup>
import JqxScrollBar from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxscrollbar.vue';
</script>
|
|
largestep
# |
Number
|
50
|
Sets or gets the scrollbar's largestep. The value is increased/decreased with this largestep when the user presses the left mouse button in the area between a scrollbar button and thumb.
<template>
<JqxScrollBar ref="myScrollBar" :width="180" :height="20" :largestep="100" />
</template>
<script setup>
import JqxScrollBar from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxscrollbar.vue';
</script>
|
|
min
# |
Number
|
0
|
Sets or gets the scrollbar's minimum value.
<template>
<JqxScrollBar ref="myScrollBar" :width="180" :height="20" :min="20" :value="20" />
</template>
<script setup>
import JqxScrollBar from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxscrollbar.vue';
</script>
|
|
max
# |
Number
|
1000
|
Sets or gets the scrollbar's maximum value.
<template>
<JqxScrollBar ref="myScrollBar" :width="180" :height="20" :max="100" :value="50" />
</template>
<script setup>
import JqxScrollBar from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxscrollbar.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>
<JqxScrollBar ref="myScrollBar" :width="180" :height="20" :rtl="true" />
</template>
<script setup>
import JqxScrollBar from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxscrollbar.vue';
</script>
|
|
step
# |
Number
|
10
|
Sets or gets the scrollbar's step. The value is increased/decreased with this step when the user presses a scrollbar button.
<template>
<JqxScrollBar ref="myScrollBar" :width="180" :height="20" :step="20" />
</template>
<script setup>
import JqxScrollBar from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxscrollbar.vue';
</script>
|
|
showButtons
# |
Boolean
|
true
|
Sets or gets whether the scrollbar displays the increase and decrease arrow buttons.
<template>
<JqxScrollBar ref="myScrollBar" :width="180" :height="20" :showButtons="false" />
</template>
<script setup>
import JqxScrollBar from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxscrollbar.vue';
</script>
|
|
thumbMinSize
# |
Number
|
10
|
Specifies the scrollbar thumb's minimum size.
<template>
<JqxScrollBar ref="myScrollBar" :width="180" :height="20" :thumbMinSize="30" />
</template>
<script setup>
import JqxScrollBar from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxscrollbar.vue';
</script>
|
|
theme
# |
String
|
''
|
Sets the widget's theme.
<template>
<JqxScrollBar ref="myScrollBar" :width="180" :height="20" :theme="'material'" />
</template>
<script setup>
import JqxScrollBar from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxscrollbar.vue';
</script>
|
|
vertical
# |
Boolean
|
false
|
Sets or gets the scrollbar's orientation.
<template>
<JqxScrollBar ref="myScrollBar" :width="20" :height="180" :vertical="true" />
</template>
<script setup>
import JqxScrollBar from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxscrollbar.vue';
</script>
|
|
value
# |
Number
|
0
|
Sets or gets the scrollbar's value.
<template>
<JqxScrollBar ref="myScrollBar" :width="180" :height="20" :value="200" />
</template>
<script setup>
import JqxScrollBar from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxscrollbar.vue';
</script>
|
|
width
# |
Number | String
|
null
|
Sets or gets width of the scroll bar.
<template>
<JqxScrollBar ref="myScrollBar" :width="180" :height="20" />
</template>
<script setup>
import JqxScrollBar from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxscrollbar.vue';
</script>
|
|
|
|
valueChanged
# |
Event
|
|
This event is triggered when the value is changed.
Code examples #
Bind to the valueChanged event of jqxScrollBar.
<template>
<JqxScrollBar
ref="myScrollBar"
@valueChanged="onValueChanged($event)"
:width="180"
:height="20"
/>
</template>
<script setup>
import JqxScrollBar from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxscrollbar.vue';
function onValueChanged(event) {
alert('do something...');
}
</script>
|
|
|
| Name | Arguments | Return Type |
|
destroy
# |
None
|
None
|
Destroys the widget.
<template>
<JqxScrollBar ref="myScrollBar" :width="180" :height="20" />
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxScrollBar from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxscrollbar.vue';
const myScrollBar = ref(null);
onMounted(() => {
myScrollBar.value.destroy();
});
</script>
|
|
isScrolling
# |
None
|
Boolean
|
Returns true, if the user is scrolling. Otherwise, returns false.
<template>
<JqxScrollBar ref="myScrollBar" :width="180" :height="20" />
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxScrollBar from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxscrollbar.vue';
const myScrollBar = ref(null);
onMounted(() => {
const value = myScrollBar.value.isScrolling();
});
</script>
|
|
setPosition
# |
index
|
None
|
Sets the thumb's position
<template>
<JqxScrollBar ref="myScrollBar" :width="180" :height="20" />
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxScrollBar from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxscrollbar.vue';
const myScrollBar = ref(null);
onMounted(() => {
myScrollBar.value.setPosition(10);
});
</script>
|