Vue UI Components Documentation
The Vue Splitter splits a container into resizable, collapsible panels, side by side or one above the other. This guide adds the Vue Splitter (jqxSplitter) to an app, then shows how to set its options, handle its events and call its methods.
jqwidgets-scriptsjqwidgets-scripts/jqwidgets-vue3/vue_jqxsplitter.vue 
In a Vue 3 project (to start one, see Getting started with Vue), add the package:
npm install jqwidgets-scripts
import JqxSplitter from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxsplitter.vue';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.tailwind-blue-dark.css';
With <script setup>, an imported component is ready to use in the template. jqx.base.css is required; the second file is a theme, selected with the theme attribute.
The Nested Splitters demo as a Single-File Component:
<template>
<JqxSplitter
:width="850"
:height="850"
:orientation="'horizontal'"
:panels="[{ size: '50%' }, { size: '50%' }]"
>
<div>
<JqxSplitter
class="jqx-splitter-nested"
:width="'100%'"
:height="'100%'"
:orientation="'vertical'"
:panels="[{ size: 300, collapsible: false }]"
>
<div>
<JqxSplitter
class="jqx-splitter-nested"
:width="'100%'"
:height="'100%'"
:orientation="'horizontal'"
:panels="[{ size: 150 }]"
>
<div>
<span>Panel 1</span>
</div>
<div>
<span>Panel 2</span>
</div>
</JqxSplitter>
</div>
<div>
<span>Panel 3</span>
</div>
</JqxSplitter>
</div>
<div>
<JqxSplitter
class="jqx-splitter-nested"
:width="'100%'"
:height="'100%'"
:orientation="'horizontal'"
:panels="[{ size: 150, collapsible: false }]"
>
<div>
<span>Panel 4</span>
</div>
<div>
<span>Panel 5</span>
</div>
</JqxSplitter>
</div>
</JqxSplitter>
</template>
<script setup>
import JqxSplitter from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxsplitter.vue';
</script>
<style>
.jqx-splitter-nested {
border: none !important;
}
</style>
Options are attributes. Bind values from the script with :, for example :width="850".
Listen to an event with @ and its name. For example, collapsed: This event is triggered when a panel is collapsed.
<script setup>
function onCollapsed(event) {
console.log(event.args);
}
</script>
<template>
<JqxSplitter @collapsed="onCollapsed" />
</template>
Call methods through a template ref. For example, expand: Expands a panel.
<script setup>
import { ref, onMounted } from 'vue';
const mySplitter = ref(null);
onMounted(() => {
mySplitter.value.expand();
});
</script>
<template>
<JqxSplitter ref="mySplitter" />
</template>
Every component also has setOptions({ … }) and getOptions('name').