Vue UI Components Documentation
The Vue Gantt shows tasks, dependencies, milestones and resources on a Gantt chart with a task tree. This guide adds the Vue Gantt (jqxGantt) to an app, then shows how to set its options, handle its events and call its methods.
jqwidgets-scriptsjqwidgets-scripts/jqwidgets-vue3/vue_jqxgantt.vue 
In a Vue 3 project (to start one, see Getting started with Vue), add the package:
npm install jqwidgets-scripts
import JqxGantt from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxgantt.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, change: This event is triggered when a Task is selected/unselected.
<script setup>
function onChange(event) {
console.log(event.args);
}
</script>
<template>
<JqxGantt @change="onChange" />
</template>
Call methods through a template ref. For example, expand: Expands a collapsed project with tasks.
<script setup>
import { ref, onMounted } from 'vue';
const myGantt = ref(null);
onMounted(() => {
myGantt.value.expand(0);
});
</script>
<template>
<JqxGantt ref="myGantt" />
</template>
Every component also has setOptions({ … }) and getOptions('name').