| Name | Type | Default |
|
disabled
# |
Boolean
|
false
|
Sets or gets the disabled property.
<template>
<JqxSplitter ref="mySplitter" :width="600" :height="600" :disabled="true">
<div>Left Side</div>
<div>Right Side</div>
</JqxSplitter>
</template>
<script setup>
import JqxSplitter from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxsplitter.vue';
</script>
|
|
height
# |
Number | String
|
300
|
Sets or gets the jqxSplitter's height.
<template>
<JqxSplitter ref="mySplitter" :width="600" :height="600">
<div>Left Side</div>
<div>Right Side</div>
</JqxSplitter>
</template>
<script setup>
import JqxSplitter from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxsplitter.vue';
</script>
|
|
orientation
# |
String
|
'vertical'
|
Sets or gets the orientation property.
<template>
<JqxSplitter ref="mySplitter" :width="600" :height="600" :orientation="'horizontal'">
<div>Left Side</div>
<div>Right Side</div>
</JqxSplitter>
</template>
<script setup>
import JqxSplitter from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxsplitter.vue';
</script>
|
|
panels
# |
Array
|
[]
|
Sets or gets the panels property.
- size - sets the panel's size.
- min - sets the panel's minimum size.
- collapsible - sets whether the panel is collapsible.
- collapsed - sets whether the panel is collapsed.
<template>
<JqxSplitter ref="mySplitter" :width="600" :height="600" :panels="panels">
<div>Left Side</div>
<div>Right Side</div>
</JqxSplitter>
</template>
<script setup>
import { ref } from 'vue';
import JqxSplitter from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxsplitter.vue';
const panels = ref([{ size: 100 }, { size: 200 }]);
</script>
|
|
resizable
# |
Boolean
|
true
|
Sets or gets the resizable property. When this property is set to false, the user will not be able to move the split bar.
<template>
<JqxSplitter ref="mySplitter" :width="600" :height="600" :resizable="false">
<div>Left Side</div>
<div>Right Side</div>
</JqxSplitter>
</template>
<script setup>
import JqxSplitter from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxsplitter.vue';
</script>
|
|
splitBarSize
# |
Number
|
5
|
Sets or gets the size of the split bar.
<template>
<JqxSplitter ref="mySplitter" :width="600" :height="600" :splitBarSize="10">
<div>Left Side</div>
<div>Right Side</div>
</JqxSplitter>
</template>
<script setup>
import JqxSplitter from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxsplitter.vue';
</script>
|
|
showSplitBar
# |
Boolean
|
true
|
Sets or gets whether the split bar is displayed.
<template>
<JqxSplitter ref="mySplitter" :width="600" :height="600" :showSplitBar="false">
<div>Left Side</div>
<div>Right Side</div>
</JqxSplitter>
</template>
<script setup>
import JqxSplitter from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxsplitter.vue';
</script>
|
|
theme
# |
String
|
''
|
Sets the widget's theme.
<template>
<JqxSplitter ref="mySplitter" :width="600" :height="600" :theme="'material'">
<div>Left Side</div>
<div>Right Side</div>
</JqxSplitter>
</template>
<script setup>
import JqxSplitter from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxsplitter.vue';
</script>
|
|
width
# |
Number | String
|
300
|
Sets or gets the jqxSplitter's width.
<template>
<JqxSplitter ref="mySplitter" :width="600" :height="600">
<div>Left Side</div>
<div>Right Side</div>
</JqxSplitter>
</template>
<script setup>
import JqxSplitter from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxsplitter.vue';
</script>
|
|
|
|
collapsed
# |
Event
|
|
This event is triggered when a panel is collapsed.
Code examples #
Bind to the collapsed event of jqxSplitter.
<template>
<JqxSplitter ref="mySplitter" @collapsed="onCollapsed($event)" :width="600" :height="600">
<div>Left Side</div>
<div>Right Side</div>
</JqxSplitter>
</template>
<script setup>
import JqxSplitter from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxsplitter.vue';
function onCollapsed(event) {
alert('do something...');
}
</script>
|
|
expanded
# |
Event
|
|
This event is triggered when a panel is expanded.
Code examples #
Bind to the expanded event of jqxSplitter.
<template>
<JqxSplitter ref="mySplitter" @expanded="onExpanded($event)" :width="600" :height="600">
<div>Left Side</div>
<div>Right Side</div>
</JqxSplitter>
</template>
<script setup>
import JqxSplitter from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxsplitter.vue';
function onExpanded(event) {
alert('do something...');
}
</script>
|
|
resize
# |
Event
|
|
This event is triggered when the 'resize' operation has ended.
Code examples #
Bind to the resize event of jqxSplitter.
<template>
<JqxSplitter ref="mySplitter" @resize="onResize($event)" :width="600" :height="600">
<div>Left Side</div>
<div>Right Side</div>
</JqxSplitter>
</template>
<script setup>
import JqxSplitter from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxsplitter.vue';
function onResize(event) {
alert('do something...');
}
</script>
|
|
resizeStart
# |
Event
|
|
This event is triggered when the 'resizeStart' operation has started.
Code examples #
Bind to the resizeStart event of jqxSplitter.
<template>
<JqxSplitter ref="mySplitter" @resizeStart="onResizeStart($event)" :width="600" :height="600">
<div>Left Side</div>
<div>Right Side</div>
</JqxSplitter>
</template>
<script setup>
import JqxSplitter from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxsplitter.vue';
function onResizeStart(event) {
alert('do something...');
}
</script>
|
|
|
| Name | Arguments | Return Type |
|
collapse
# |
None
|
None
|
Collapse a panel.
<template>
<JqxSplitter ref="mySplitter" :width="600" :height="600">
<div>Left Side</div>
<div>Right Side</div>
</JqxSplitter>
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxSplitter from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxsplitter.vue';
const mySplitter = ref(null);
onMounted(() => {
mySplitter.value.collapse();
});
</script>
|
|
destroy
# |
None
|
None
|
Destroys the jqxSplitter. This method will remove the jqxSplitter from the DOM and will remove all internal event handlers and styles.
<template>
<JqxSplitter ref="mySplitter" :width="600" :height="600">
<div>Left Side</div>
<div>Right Side</div>
</JqxSplitter>
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxSplitter from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxsplitter.vue';
const mySplitter = ref(null);
onMounted(() => {
mySplitter.value.destroy();
});
</script>
|
|
disable
# |
None
|
None
|
Disables the jqxSplitter.
<template>
<JqxSplitter ref="mySplitter" :width="600" :height="600">
<div>Left Side</div>
<div>Right Side</div>
</JqxSplitter>
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxSplitter from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxsplitter.vue';
const mySplitter = ref(null);
onMounted(() => {
mySplitter.value.disable();
});
</script>
|
|
enable
# |
None
|
None
|
Enables the jqxSplitter.
<template>
<JqxSplitter ref="mySplitter" :width="600" :height="600">
<div>Left Side</div>
<div>Right Side</div>
</JqxSplitter>
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxSplitter from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxsplitter.vue';
const mySplitter = ref(null);
onMounted(() => {
mySplitter.value.disabled = true;
mySplitter.value.enable();
});
</script>
|
|
expand
# |
None
|
None
|
Expands a panel.
<template>
<JqxSplitter ref="mySplitter" :width="600" :height="600">
<div>Left Side</div>
<div>Right Side</div>
</JqxSplitter>
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxSplitter from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxsplitter.vue';
const mySplitter = ref(null);
onMounted(() => {
mySplitter.value.expand();
});
</script>
|
|
render
# |
None
|
None
|
Renders the jqxSplitter.
<template>
<JqxSplitter ref="mySplitter" :width="600" :height="600">
<div>Left Side</div>
<div>Right Side</div>
</JqxSplitter>
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxSplitter from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxsplitter.vue';
const mySplitter = ref(null);
onMounted(() => {
mySplitter.value.render();
});
</script>
|
|
refresh
# |
None
|
None
|
Refreshes the jqxSplitter. This method will perform a layout and will arrange the split panels.
<template>
<JqxSplitter ref="mySplitter" :width="600" :height="600">
<div>Left Side</div>
<div>Right Side</div>
</JqxSplitter>
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxSplitter from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxsplitter.vue';
const mySplitter = ref(null);
onMounted(() => {
mySplitter.value.refresh();
});
</script>
|