Vue UI Components Documentation
The Vue Chat is a chat UI with a message list, a typing indicator, attachments and AI assistant integration. This guide adds the Vue Chat (jqxChat) to an app, then shows how to set its options, handle its events and call its methods.
jqwidgets-scriptsjqwidgets-scripts/jqwidgets-vue3/vue_jqxchat.vue 
In a Vue 3 project (to start one, see Getting started with Vue), add the package:
npm install jqwidgets-scripts
import JqxChat from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxchat.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, open: This event is triggered when the popup panel is opened.
<script setup>
function onOpen(event) {
console.log(event.args);
}
</script>
<template>
<JqxChat @open="onOpen" />
</template>
Call methods through a template ref. For example, val: Returns the conversation history as an array of message objects (alias of getMessages).
<script setup>
import { ref, onMounted } from 'vue';
const myChat = ref(null);
onMounted(() => {
const value = myChat.value.val();
console.log(value);
});
</script>
<template>
<JqxChat ref="myChat" />
</template>
Every component also has setOptions({ … }) and getOptions('name').