Vue UI Components Documentation
The Vue TagCloud displays a collection of user-generated tags accompanying the articles, posts, or videos on your website. This guide adds the Vue TagCloud (jqxTagCloud) to an app, then shows how to set its options, handle its events and call its methods.
jqwidgets-scriptsjqwidgets-scripts/jqwidgets-vue3/vue_jqxtagcloud.vue 
In a Vue 3 project (to start one, see Getting started with Vue), add the package:
npm install jqwidgets-scripts
import JqxTagCloud from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxtagcloud.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>
<JqxTagCloud
:width="600"
:source="dataAdapter"
:displayMember="'countryName'"
:valueMember="'technologyRating'"
>
</JqxTagCloud>
</template>
<script setup>
import JqxTagCloud from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxtagcloud.vue';
const data = [
{ countryName: 'Australia', technologyRating: 35 },
{ countryName: 'United States', technologyRating: 60 },
{ countryName: 'Germany', technologyRating: 55 },
{ countryName: 'Brasil', technologyRating: 20 },
{ countryName: 'United Kingdom', technologyRating: 50 },
{ countryName: 'Japan', technologyRating: 80 }
];
const source = {
localdata: data,
datatype: 'array',
datafields: [{ name: 'countryName' }, { name: 'technologyRating' }]
};
let dataAdapter = new jqx.dataAdapter(source);
</script>
Options are attributes. Bind values from the script with :, for example :width="850".
Listen to an event with @ and its name. For example, bindingComplete: This event is triggered when the widget has completed binding to a dataAdapter.
<script setup>
function onBindingComplete(event) {
console.log(event.args);
}
</script>
<template>
<JqxTagCloud @bindingComplete="onBindingComplete" />
</template>
Call methods through a template ref. For example, findTagIndex: Returns the index of the first tag with the specified label (displayMember).
<script setup>
import { ref, onMounted } from 'vue';
const myTagCloud = ref(null);
onMounted(() => {
const index = myTagCloud.value.findTagIndex('Germany');
console.log(index);
});
</script>
<template>
<JqxTagCloud ref="myTagCloud" />
</template>
Every component also has setOptions({ … }) and getOptions('name').