Vue UI Components Documentation
The Vue Barcode generates barcodes in common 1D symbologies, rendered as SVG or Canvas. This guide adds the Vue Barcode (jqxBarcode) to an app, then shows how to set its options, handle its events and call its methods.
jqwidgets-scriptsjqwidgets-scripts/jqwidgets-vue3/vue_jqxbarcode.vue 
In a Vue 3 project (to start one, see Getting started with Vue), add the package:
npm install jqwidgets-scripts
import JqxBarcode from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbarcode.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, invalid: This event is triggered when the value of the qrcode is invalid.
<script setup>
function onInvalid(event) {
console.log(event.args);
}
</script>
<template>
<JqxBarcode @invalid="onInvalid" />
</template>
Call methods through a template ref. For example, export: Exports the qrcode.
<script setup>
import { ref, onMounted } from 'vue';
const myBarcode = ref(null);
onMounted(() => {
myBarcode.value.export('format');
});
</script>
<template>
<JqxBarcode ref="myBarcode" />
</template>
Every component also has setOptions({ … }) and getOptions('name').