Vue UI Components Documentation
The Vue FileUpload enables users to select files and upload them to a server. This guide adds the Vue FileUpload (jqxFileUpload) to an app, then shows how to set its options, handle its events and call its methods.
jqwidgets-scriptsjqwidgets-scripts/jqwidgets-vue3/vue_jqxfileupload.vue 
In a Vue 3 project (to start one, see Getting started with Vue), add the package:
npm install jqwidgets-scripts
import JqxFileUpload from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxfileupload.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 Default Functionality demo as a Single-File Component:
<template>
<JqxFileUpload :width="300" :uploadUrl="'imageUpload.php'" :fileInputName="'fileToUpload'">
</JqxFileUpload>
</template>
<script setup>
import JqxFileUpload from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxfileupload.vue';
</script>
<style></style>
Options are attributes. Bind values from the script with :, for example :width="850".
Listen to an event with @ and its name. For example, select: This event is triggered when a file has been selected.
<script setup>
function onSelect(event) {
console.log(event.args);
}
</script>
<template>
<JqxFileUpload @select="onSelect" />
</template>
Call methods through a template ref. For example, refresh: Refreshes the widget.
<script setup>
import { ref, onMounted } from 'vue';
const myFileUpload = ref(null);
onMounted(() => {
myFileUpload.value.refresh();
});
</script>
<template>
<JqxFileUpload ref="myFileUpload" />
</template>
Every component also has setOptions({ … }) and getOptions('name').