Vue UI Components Documentation
The Vue SplitLayout builds a nested split layout from a JSON structure. This guide adds the Vue SplitLayout (jqxSplitLayout) to an app, then shows how to set its options, handle its events and call its methods.
jqwidgets-scriptsjqwidgets-scripts/jqwidgets-vue3/vue_jqxsplitlayout.vue 
In a Vue 3 project (to start one, see Getting started with Vue), add the package:
npm install jqwidgets-scripts
import JqxSplitLayout from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxsplitlayout.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.
Listen to an event with @ and its name. For example, resize: This event is triggered when a layout panel is resized.
<script setup>
function onResize(event) {
console.log(event.args);
}
</script>
<template>
<JqxSplitLayout @resize="onResize" />
</template>
Call methods through a template ref. For example, refresh: refreshes the layout and re-arranges the panels
<script setup>
import { ref, onMounted } from 'vue';
const mySplitLayout = ref(null);
onMounted(() => {
mySplitLayout.value.refresh();
});
</script>
<template>
<JqxSplitLayout ref="mySplitLayout" />
</template>
Every component also has setOptions({ … }) and getOptions('name').