| Name | Type | Default |
|
alterTextCase
# |
String
|
'none'
|
Sets or gets the alterTextCase property used to specify the field by which tags should be sorted. Possible values are 'none', 'allLower', 'allUpper', 'firstUpper', 'titleCase'
<template>
<JqxTagCloud
ref="myTagCloud"
:source="source"
:width="800"
:displayMember="'countryName'"
:valueMember="'technologyRating'"
:alterTextCase="'titleCase'"
/>
</template>
<script setup>
import { ref } from 'vue';
import JqxTagCloud from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxtagcloud.vue';
let data = [
{ countryName: 'Australia', technologyRating: 35, url: 'community' },
{ countryName: 'United States', technologyRating: 60, url: 'community' },
{ countryName: 'Germany', technologyRating: 55, url: 'community' },
{ countryName: 'Brasil', technologyRating: 20, url: 'community' },
{ countryName: 'United Kingdom', technologyRating: 50, url: 'community' },
{ countryName: 'Japan', technologyRating: 80, url: 'community' }
];
const sourceData = {
localdata: data,
datatype: 'array',
datafields: [{ name: 'countryName' }, { name: 'technologyRating' }, { name: 'url' }]
};
const source = ref(new jqx.dataAdapter(sourceData));
</script>
|
|
disabled
# |
Boolean
|
false
|
Enables or disables the ability to follow tag links in jqxTagCloud.
<template>
<JqxTagCloud
ref="myTagCloud"
:source="source"
:width="800"
:displayMember="'countryName'"
:valueMember="'technologyRating'"
:disabled="true"
/>
</template>
<script setup>
import { ref } from 'vue';
import JqxTagCloud from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxtagcloud.vue';
let data = [
{ countryName: 'Australia', technologyRating: 35, url: 'community' },
{ countryName: 'United States', technologyRating: 60, url: 'community' },
{ countryName: 'Germany', technologyRating: 55, url: 'community' },
{ countryName: 'Brasil', technologyRating: 20, url: 'community' },
{ countryName: 'United Kingdom', technologyRating: 50, url: 'community' },
{ countryName: 'Japan', technologyRating: 80, url: 'community' }
];
const sourceData = {
localdata: data,
datatype: 'array',
datafields: [{ name: 'countryName' }, { name: 'technologyRating' }, { name: 'url' }]
};
const source = ref(new jqx.dataAdapter(sourceData));
</script>
|
|
displayLimit
# |
Number
|
null
|
Sets or gets the displayLimit property used to filter highest values tags up to the number specified.
<template>
<JqxTagCloud
ref="myTagCloud"
:source="source"
:width="800"
:displayMember="'countryName'"
:valueMember="'technologyRating'"
:displayLimit="3"
/>
</template>
<script setup>
import { ref } from 'vue';
import JqxTagCloud from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxtagcloud.vue';
let data = [
{ countryName: 'Australia', technologyRating: 35, url: 'community' },
{ countryName: 'United States', technologyRating: 60, url: 'community' },
{ countryName: 'Germany', technologyRating: 55, url: 'community' },
{ countryName: 'Brasil', technologyRating: 20, url: 'community' },
{ countryName: 'United Kingdom', technologyRating: 50, url: 'community' },
{ countryName: 'Japan', technologyRating: 80, url: 'community' }
];
const sourceData = {
localdata: data,
datatype: 'array',
datafields: [{ name: 'countryName' }, { name: 'technologyRating' }, { name: 'url' }]
};
const source = ref(new jqx.dataAdapter(sourceData));
</script>
|
|
displayMember
# |
String
|
'label'
|
Sets or gets the field name used for the tag label.
<template>
<JqxTagCloud
ref="myTagCloud"
:source="source"
:width="800"
:displayMember="'countryName'"
:valueMember="'technologyRating'"
/>
</template>
<script setup>
import { ref } from 'vue';
import JqxTagCloud from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxtagcloud.vue';
let data = [
{ countryName: 'Australia', technologyRating: 35, url: 'community' },
{ countryName: 'United States', technologyRating: 60, url: 'community' },
{ countryName: 'Germany', technologyRating: 55, url: 'community' },
{ countryName: 'Brasil', technologyRating: 20, url: 'community' },
{ countryName: 'United Kingdom', technologyRating: 50, url: 'community' },
{ countryName: 'Japan', technologyRating: 80, url: 'community' }
];
const sourceData = {
localdata: data,
datatype: 'array',
datafields: [{ name: 'countryName' }, { name: 'technologyRating' }, { name: 'url' }]
};
const source = ref(new jqx.dataAdapter(sourceData));
</script>
|
|
displayValue
# |
Boolean
|
false
|
Sets or gets the displayValue property used to specify whether to add the tag value field after the text.
<template>
<JqxTagCloud
ref="myTagCloud"
:source="source"
:width="800"
:displayMember="'countryName'"
:valueMember="'technologyRating'"
:displayValue="true"
/>
</template>
<script setup>
import { ref } from 'vue';
import JqxTagCloud from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxtagcloud.vue';
let data = [
{ countryName: 'Australia', technologyRating: 35, url: 'community' },
{ countryName: 'United States', technologyRating: 60, url: 'community' },
{ countryName: 'Germany', technologyRating: 55, url: 'community' },
{ countryName: 'Brasil', technologyRating: 20, url: 'community' },
{ countryName: 'United Kingdom', technologyRating: 50, url: 'community' },
{ countryName: 'Japan', technologyRating: 80, url: 'community' }
];
const sourceData = {
localdata: data,
datatype: 'array',
datafields: [{ name: 'countryName' }, { name: 'technologyRating' }, { name: 'url' }]
};
const source = ref(new jqx.dataAdapter(sourceData));
</script>
|
|
fontSizeUnit
# |
String
|
'px'
|
Sets or gets the fontSizeUnit property used to set the font size unit possible values 'px', 'em', '%'
<template>
<JqxTagCloud
ref="myTagCloud"
:source="source"
:width="800"
:displayMember="'countryName'"
:valueMember="'technologyRating'"
:fontSizeUnit="'em'"
/>
</template>
<script setup>
import { ref } from 'vue';
import JqxTagCloud from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxtagcloud.vue';
let data = [
{ countryName: 'Australia', technologyRating: 35, url: 'community' },
{ countryName: 'United States', technologyRating: 60, url: 'community' },
{ countryName: 'Germany', technologyRating: 55, url: 'community' },
{ countryName: 'Brasil', technologyRating: 20, url: 'community' },
{ countryName: 'United Kingdom', technologyRating: 50, url: 'community' },
{ countryName: 'Japan', technologyRating: 80, url: 'community' }
];
const sourceData = {
localdata: data,
datatype: 'array',
datafields: [{ name: 'countryName' }, { name: 'technologyRating' }, { name: 'url' }]
};
const source = ref(new jqx.dataAdapter(sourceData));
</script>
|
|
height
# |
Number | String
|
null
|
Sets or gets the jqxTagCloud's height.
<template>
<JqxTagCloud
ref="myTagCloud"
:source="source"
:width="800"
:displayMember="'countryName'"
:valueMember="'technologyRating'"
:height="50"
/>
</template>
<script setup>
import { ref } from 'vue';
import JqxTagCloud from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxtagcloud.vue';
let data = [
{ countryName: 'Australia', technologyRating: 35, url: 'community' },
{ countryName: 'United States', technologyRating: 60, url: 'community' },
{ countryName: 'Germany', technologyRating: 55, url: 'community' },
{ countryName: 'Brasil', technologyRating: 20, url: 'community' },
{ countryName: 'United Kingdom', technologyRating: 50, url: 'community' },
{ countryName: 'Japan', technologyRating: 80, url: 'community' }
];
const sourceData = {
localdata: data,
datatype: 'array',
datafields: [{ name: 'countryName' }, { name: 'technologyRating' }, { name: 'url' }]
};
const source = ref(new jqx.dataAdapter(sourceData));
</script>
|
|
maxColor
# |
String
|
null
|
Sets or gets the maxColor property used to specify color of the tags for the elements with highest value attribute. Together with minColor property will set color of tags in a gradient fashion depending on their value attribute towards the highest value. Possible values: all browser supported colors including rgba.
<template>
<JqxTagCloud
ref="myTagCloud"
:source="source"
:width="800"
:displayMember="'countryName'"
:valueMember="'technologyRating'"
:maxColor="'darkgreen'"
:minColor="'lime'"
/>
</template>
<script setup>
import { ref } from 'vue';
import JqxTagCloud from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxtagcloud.vue';
let data = [
{ countryName: 'Australia', technologyRating: 35, url: 'community' },
{ countryName: 'United States', technologyRating: 60, url: 'community' },
{ countryName: 'Germany', technologyRating: 55, url: 'community' },
{ countryName: 'Brasil', technologyRating: 20, url: 'community' },
{ countryName: 'United Kingdom', technologyRating: 50, url: 'community' },
{ countryName: 'Japan', technologyRating: 80, url: 'community' }
];
const sourceData = {
localdata: data,
datatype: 'array',
datafields: [{ name: 'countryName' }, { name: 'technologyRating' }, { name: 'url' }]
};
const source = ref(new jqx.dataAdapter(sourceData));
</script>
|
|
maxFontSize
# |
Number
|
24
|
Sets or gets the maxFontSize property used to set the font size of the tags with the highest value attribute.
<template>
<JqxTagCloud
ref="myTagCloud"
:source="source"
:width="800"
:displayMember="'countryName'"
:valueMember="'technologyRating'"
:maxFontSize="5"
/>
</template>
<script setup>
import { ref } from 'vue';
import JqxTagCloud from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxtagcloud.vue';
let data = [
{ countryName: 'Australia', technologyRating: 35, url: 'community' },
{ countryName: 'United States', technologyRating: 60, url: 'community' },
{ countryName: 'Germany', technologyRating: 55, url: 'community' },
{ countryName: 'Brasil', technologyRating: 20, url: 'community' },
{ countryName: 'United Kingdom', technologyRating: 50, url: 'community' },
{ countryName: 'Japan', technologyRating: 80, url: 'community' }
];
const sourceData = {
localdata: data,
datatype: 'array',
datafields: [{ name: 'countryName' }, { name: 'technologyRating' }, { name: 'url' }]
};
const source = ref(new jqx.dataAdapter(sourceData));
</script>
|
|
maxValueToDisplay
# |
Number
|
0
|
Sets or gets the maxValueToDisplay property used to filter tags with value higher than the specified.
<template>
<JqxTagCloud
ref="myTagCloud"
:source="source"
:width="800"
:displayMember="'countryName'"
:valueMember="'technologyRating'"
:maxValueToDisplay="50"
/>
</template>
<script setup>
import { ref } from 'vue';
import JqxTagCloud from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxtagcloud.vue';
let data = [
{ countryName: 'Australia', technologyRating: 35, url: 'community' },
{ countryName: 'United States', technologyRating: 60, url: 'community' },
{ countryName: 'Germany', technologyRating: 55, url: 'community' },
{ countryName: 'Brasil', technologyRating: 20, url: 'community' },
{ countryName: 'United Kingdom', technologyRating: 50, url: 'community' },
{ countryName: 'Japan', technologyRating: 80, url: 'community' }
];
const sourceData = {
localdata: data,
datatype: 'array',
datafields: [{ name: 'countryName' }, { name: 'technologyRating' }, { name: 'url' }]
};
const source = ref(new jqx.dataAdapter(sourceData));
</script>
|
|
minColor
# |
String
|
null
|
Sets or gets the minColor property used to specify color of the tags for the elements with lowest value attribute. Together with maxColor property will set color of tags in a gradient fashion depending on their value attribute towards the highest value. Possible values: all browser supported colors including rgba.
<template>
<JqxTagCloud
ref="myTagCloud"
:source="source"
:width="800"
:displayMember="'countryName'"
:valueMember="'technologyRating'"
:maxColor="'darkgreen'"
:minColor="'lime'"
/>
</template>
<script setup>
import { ref } from 'vue';
import JqxTagCloud from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxtagcloud.vue';
let data = [
{ countryName: 'Australia', technologyRating: 35, url: 'community' },
{ countryName: 'United States', technologyRating: 60, url: 'community' },
{ countryName: 'Germany', technologyRating: 55, url: 'community' },
{ countryName: 'Brasil', technologyRating: 20, url: 'community' },
{ countryName: 'United Kingdom', technologyRating: 50, url: 'community' },
{ countryName: 'Japan', technologyRating: 80, url: 'community' }
];
const sourceData = {
localdata: data,
datatype: 'array',
datafields: [{ name: 'countryName' }, { name: 'technologyRating' }, { name: 'url' }]
};
const source = ref(new jqx.dataAdapter(sourceData));
</script>
|
|
minFontSize
# |
Number
|
10
|
Sets or gets the minFontSize property used to set the font size of the tags with the lowest value attribute.
<template>
<JqxTagCloud
ref="myTagCloud"
:source="source"
:width="800"
:displayMember="'countryName'"
:valueMember="'technologyRating'"
:minFontSize="1"
/>
</template>
<script setup>
import { ref } from 'vue';
import JqxTagCloud from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxtagcloud.vue';
let data = [
{ countryName: 'Australia', technologyRating: 35, url: 'community' },
{ countryName: 'United States', technologyRating: 60, url: 'community' },
{ countryName: 'Germany', technologyRating: 55, url: 'community' },
{ countryName: 'Brasil', technologyRating: 20, url: 'community' },
{ countryName: 'United Kingdom', technologyRating: 50, url: 'community' },
{ countryName: 'Japan', technologyRating: 80, url: 'community' }
];
const sourceData = {
localdata: data,
datatype: 'array',
datafields: [{ name: 'countryName' }, { name: 'technologyRating' }, { name: 'url' }]
};
const source = ref(new jqx.dataAdapter(sourceData));
</script>
|
|
minValueToDisplay
# |
Number
|
0
|
Sets or gets the minValueToDisplay property used to filter tags with value lower than the specified.
<template>
<JqxTagCloud
ref="myTagCloud"
:source="source"
:width="800"
:displayMember="'countryName'"
:valueMember="'technologyRating'"
:minValueToDisplay="30"
/>
</template>
<script setup>
import { ref } from 'vue';
import JqxTagCloud from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxtagcloud.vue';
let data = [
{ countryName: 'Australia', technologyRating: 35, url: 'community' },
{ countryName: 'United States', technologyRating: 60, url: 'community' },
{ countryName: 'Germany', technologyRating: 55, url: 'community' },
{ countryName: 'Brasil', technologyRating: 20, url: 'community' },
{ countryName: 'United Kingdom', technologyRating: 50, url: 'community' },
{ countryName: 'Japan', technologyRating: 80, url: 'community' }
];
const sourceData = {
localdata: data,
datatype: 'array',
datafields: [{ name: 'countryName' }, { name: 'technologyRating' }, { name: 'url' }]
};
const source = ref(new jqx.dataAdapter(sourceData));
</script>
|
|
rtl
# |
Boolean
|
false
|
Sets or gets a value indicating whether widget's elements are aligned to support locales using right-to-left fonts.
<template>
<JqxTagCloud
ref="myTagCloud"
:source="source"
:width="800"
:displayMember="'countryName'"
:valueMember="'technologyRating'"
:rtl="true"
/>
</template>
<script setup>
import { ref } from 'vue';
import JqxTagCloud from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxtagcloud.vue';
let data = [
{ countryName: 'Australia', technologyRating: 35, url: 'community' },
{ countryName: 'United States', technologyRating: 60, url: 'community' },
{ countryName: 'Germany', technologyRating: 55, url: 'community' },
{ countryName: 'Brasil', technologyRating: 20, url: 'community' },
{ countryName: 'United Kingdom', technologyRating: 50, url: 'community' },
{ countryName: 'Japan', technologyRating: 80, url: 'community' }
];
const sourceData = {
localdata: data,
datatype: 'array',
datafields: [{ name: 'countryName' }, { name: 'technologyRating' }, { name: 'url' }]
};
const source = ref(new jqx.dataAdapter(sourceData));
</script>
|
|
sortBy
# |
String
|
'none'
|
Sets or gets the sortBy property used to specify the field by which tags should be sorted. Possible values are 'none', 'label', 'value'
<template>
<JqxTagCloud
ref="myTagCloud"
:source="source"
:width="800"
:displayMember="'countryName'"
:valueMember="'technologyRating'"
:sortBy="'label'"
/>
</template>
<script setup>
import { ref } from 'vue';
import JqxTagCloud from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxtagcloud.vue';
let data = [
{ countryName: 'Australia', technologyRating: 35, url: 'community' },
{ countryName: 'United States', technologyRating: 60, url: 'community' },
{ countryName: 'Germany', technologyRating: 55, url: 'community' },
{ countryName: 'Brasil', technologyRating: 20, url: 'community' },
{ countryName: 'United Kingdom', technologyRating: 50, url: 'community' },
{ countryName: 'Japan', technologyRating: 80, url: 'community' }
];
const sourceData = {
localdata: data,
datatype: 'array',
datafields: [{ name: 'countryName' }, { name: 'technologyRating' }, { name: 'url' }]
};
const source = ref(new jqx.dataAdapter(sourceData));
</script>
|
|
sortOrder
# |
String
|
'ascending'
|
Sets or gets the sortOrder property used to specify the direction in which tags should be sorted. Possible values are 'ascending', 'descending'
<template>
<JqxTagCloud
ref="myTagCloud"
:source="source"
:width="800"
:displayMember="'countryName'"
:valueMember="'technologyRating'"
:sortBy="'label'"
:sortOrder="'descending'"
/>
</template>
<script setup>
import { ref } from 'vue';
import JqxTagCloud from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxtagcloud.vue';
let data = [
{ countryName: 'Australia', technologyRating: 35, url: 'community' },
{ countryName: 'United States', technologyRating: 60, url: 'community' },
{ countryName: 'Germany', technologyRating: 55, url: 'community' },
{ countryName: 'Brasil', technologyRating: 20, url: 'community' },
{ countryName: 'United Kingdom', technologyRating: 50, url: 'community' },
{ countryName: 'Japan', technologyRating: 80, url: 'community' }
];
const sourceData = {
localdata: data,
datatype: 'array',
datafields: [{ name: 'countryName' }, { name: 'technologyRating' }, { name: 'url' }]
};
const source = ref(new jqx.dataAdapter(sourceData));
</script>
|
|
source
# |
Object
|
{}
|
<template>
<JqxTagCloud
ref="myTagCloud"
:source="source"
:width="800"
:displayMember="'countryName'"
:valueMember="'technologyRating'"
/>
</template>
<script setup>
import { ref } from 'vue';
import JqxTagCloud from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxtagcloud.vue';
let data = [
{ countryName: 'Australia', technologyRating: 35, url: 'community' },
{ countryName: 'United States', technologyRating: 60, url: 'community' },
{ countryName: 'Germany', technologyRating: 55, url: 'community' },
{ countryName: 'Brasil', technologyRating: 20, url: 'community' },
{ countryName: 'United Kingdom', technologyRating: 50, url: 'community' },
{ countryName: 'Japan', technologyRating: 80, url: 'community' }
];
const sourceData = {
localdata: data,
datatype: 'array',
datafields: [{ name: 'countryName' }, { name: 'technologyRating' }, { name: 'url' }]
};
const source = ref(new jqx.dataAdapter(sourceData));
</script>
|
|
tagRenderer
# |
Function
|
null
|
A callback function used for custom tags rendering.
function tagRenderer (itemData, minValue, valueRange)
itemData - the record information of the current tag
minValue - the lowest value attribute of all elements in the cloud
valueRange - the difference between the lowest and highest value attributes in the cloud ( can be used for custom logic )
The function must return valid content for an anchor tag, usually a string but can be also be a jquery element object.
<template>
<JqxTagCloud
ref="myTagCloud"
:source="source"
:width="800"
:displayMember="'countryName'"
:valueMember="'technologyRating'"
:tagRenderer="tagRenderer"
/>
</template>
<script setup>
import { ref } from 'vue';
import JqxTagCloud from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxtagcloud.vue';
let data = [
{ countryName: 'Australia', technologyRating: 35, url: 'community' },
{ countryName: 'United States', technologyRating: 60, url: 'community' },
{ countryName: 'Germany', technologyRating: 55, url: 'community' },
{ countryName: 'Brasil', technologyRating: 20, url: 'community' },
{ countryName: 'United Kingdom', technologyRating: 50, url: 'community' },
{ countryName: 'Japan', technologyRating: 80, url: 'community' }
];
const sourceData = {
localdata: data,
datatype: 'array',
datafields: [{ name: 'countryName' }, { name: 'technologyRating' }, { name: 'url' }]
};
const source = ref(new jqx.dataAdapter(sourceData));
function tagRenderer(itemData, minValue, valueRange) {
return '<i>' + itemData.countryName + '</i>';
}
</script>
|
|
takeTopWeightedItems
# |
Boolean
|
false
|
Sets or gets the takeTopWeightedItems property. Property indicates if displayLimit will prioritize highest value members
<template>
<JqxTagCloud
ref="myTagCloud"
:source="source"
:width="800"
:displayMember="'countryName'"
:valueMember="'technologyRating'"
:takeTopWeightedItems="true"
/>
</template>
<script setup>
import { ref } from 'vue';
import JqxTagCloud from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxtagcloud.vue';
let data = [
{ countryName: 'Australia', technologyRating: 35, url: 'community' },
{ countryName: 'United States', technologyRating: 60, url: 'community' },
{ countryName: 'Germany', technologyRating: 55, url: 'community' },
{ countryName: 'Brasil', technologyRating: 20, url: 'community' },
{ countryName: 'United Kingdom', technologyRating: 50, url: 'community' },
{ countryName: 'Japan', technologyRating: 80, url: 'community' }
];
const sourceData = {
localdata: data,
datatype: 'array',
datafields: [{ name: 'countryName' }, { name: 'technologyRating' }, { name: 'url' }]
};
const source = ref(new jqx.dataAdapter(sourceData));
</script>
|
|
textColor
# |
String
|
null
|
Sets or gets the textColor property used to specify color of the tags in the case where the minColor and maxColor properties are not set. Possible values: all browser supported colors including rgba.
<template>
<JqxTagCloud
ref="myTagCloud"
:source="source"
:width="800"
:displayMember="'countryName'"
:valueMember="'technologyRating'"
:textColor="'red'"
/>
</template>
<script setup>
import { ref } from 'vue';
import JqxTagCloud from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxtagcloud.vue';
let data = [
{ countryName: 'Australia', technologyRating: 35, url: 'community' },
{ countryName: 'United States', technologyRating: 60, url: 'community' },
{ countryName: 'Germany', technologyRating: 55, url: 'community' },
{ countryName: 'Brasil', technologyRating: 20, url: 'community' },
{ countryName: 'United Kingdom', technologyRating: 50, url: 'community' },
{ countryName: 'Japan', technologyRating: 80, url: 'community' }
];
const sourceData = {
localdata: data,
datatype: 'array',
datafields: [{ name: 'countryName' }, { name: 'technologyRating' }, { name: 'url' }]
};
const source = ref(new jqx.dataAdapter(sourceData));
</script>
|
|
theme
# |
String
|
''
|
Sets the widget's theme.
<template>
<JqxTagCloud ref="myTagCloud"
:source="dataAdapter" :width="800" :displayMember="'countryName'" :valueMember="'technologyRating'"
:theme="'material'"
/>
</template>
<script setup>
import { ref } from "vue";
import JqxTagCloud from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxtagcloud.vue';
let data = [{
countryName: "Australia",
technologyRating: 35,
url: "community"
}, {
countryName: "United States",
technologyRating: 60,
url: "community"
}, {
countryName: "Germany",
technologyRating: 55,
url: "community"
}, {
countryName: "Brasil",
technologyRating: 20,
url: "community"
}, {
countryName: "United Kingdom",
technologyRating: 50,
url: "community"
}, {
countryName: "Japan",
technologyRating: 80,
url: "community"
}];
let source = {
localdata: data,
datatype: "array",
datafields: [{
name: 'countryName'
}, {
name: 'technologyRating'
}, {
name: 'url'
}]
};
const dataAdapter = ref(new jqx.dataAdapter(source));
</script>
|
|
urlBase
# |
String
|
''
|
Sets or gets the field name used for common base URL path for all tags.
<template>
<JqxTagCloud
ref="myTagCloud"
:source="source"
:width="800"
:displayMember="'countryName'"
:valueMember="'technologyRating'"
:urlBase="'https://jqwidgets.com/'"
:urlMember="'url'"
/>
</template>
<script setup>
import { ref } from 'vue';
import JqxTagCloud from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxtagcloud.vue';
let data = [
{ countryName: 'Australia', technologyRating: 35, url: 'community' },
{ countryName: 'United States', technologyRating: 60, url: 'community' },
{ countryName: 'Germany', technologyRating: 55, url: 'community' },
{ countryName: 'Brasil', technologyRating: 20, url: 'community' },
{ countryName: 'United Kingdom', technologyRating: 50, url: 'community' },
{ countryName: 'Japan', technologyRating: 80, url: 'community' }
];
const sourceData = {
localdata: data,
datatype: 'array',
datafields: [{ name: 'countryName' }, { name: 'technologyRating' }, { name: 'url' }]
};
const source = ref(new jqx.dataAdapter(sourceData));
</script>
|
|
urlMember
# |
String
|
'url'
|
Sets or gets the field name used by the anchor element.
<template>
<JqxTagCloud
ref="myTagCloud"
:source="source"
:width="800"
:displayMember="'countryName'"
:valueMember="'technologyRating'"
:urlMember="'url'"
/>
</template>
<script setup>
import { ref } from 'vue';
import JqxTagCloud from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxtagcloud.vue';
let data = [
{ countryName: 'Australia', technologyRating: 35, url: 'community' },
{ countryName: 'United States', technologyRating: 60, url: 'community' },
{ countryName: 'Germany', technologyRating: 55, url: 'community' },
{ countryName: 'Brasil', technologyRating: 20, url: 'community' },
{ countryName: 'United Kingdom', technologyRating: 50, url: 'community' },
{ countryName: 'Japan', technologyRating: 80, url: 'community' }
];
const sourceData = {
localdata: data,
datatype: 'array',
datafields: [{ name: 'countryName' }, { name: 'technologyRating' }, { name: 'url' }]
};
const source = ref(new jqx.dataAdapter(sourceData));
</script>
|
|
valueMember
# |
String
|
'value'
|
Sets or gets the field name used for value/weight.
<template>
<JqxTagCloud
ref="myTagCloud"
:source="source"
:width="800"
:displayMember="'countryName'"
:valueMember="'technologyRating'"
/>
</template>
<script setup>
import { ref } from 'vue';
import JqxTagCloud from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxtagcloud.vue';
let data = [
{ countryName: 'Australia', technologyRating: 35, url: 'community' },
{ countryName: 'United States', technologyRating: 60, url: 'community' },
{ countryName: 'Germany', technologyRating: 55, url: 'community' },
{ countryName: 'Brasil', technologyRating: 20, url: 'community' },
{ countryName: 'United Kingdom', technologyRating: 50, url: 'community' },
{ countryName: 'Japan', technologyRating: 80, url: 'community' }
];
const sourceData = {
localdata: data,
datatype: 'array',
datafields: [{ name: 'countryName' }, { name: 'technologyRating' }, { name: 'url' }]
};
const source = ref(new jqx.dataAdapter(sourceData));
</script>
|
|
width
# |
Number | String
|
null
|
Sets or gets the jqxTagCloud's width.
<template>
<JqxTagCloud
ref="myTagCloud"
:source="source"
:width="800"
:displayMember="'countryName'"
:valueMember="'technologyRating'"
/>
</template>
<script setup>
import { ref } from 'vue';
import JqxTagCloud from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxtagcloud.vue';
let data = [
{ countryName: 'Australia', technologyRating: 35, url: 'community' },
{ countryName: 'United States', technologyRating: 60, url: 'community' },
{ countryName: 'Germany', technologyRating: 55, url: 'community' },
{ countryName: 'Brasil', technologyRating: 20, url: 'community' },
{ countryName: 'United Kingdom', technologyRating: 50, url: 'community' },
{ countryName: 'Japan', technologyRating: 80, url: 'community' }
];
const sourceData = {
localdata: data,
datatype: 'array',
datafields: [{ name: 'countryName' }, { name: 'technologyRating' }, { name: 'url' }]
};
const source = ref(new jqx.dataAdapter(sourceData));
</script>
|
|
|
|
bindingComplete
# |
Event
|
|
This event is triggered when the widget has completed binding to a dataAdapter.
Code examples #
Bind to the bindingComplete event of jqxTagCloud.
<template>
<JqxTagCloud
ref="myTagCloud"
@bindingComplete="onBindingComplete($event)"
:source="source"
:width="800"
:displayMember="'countryName'"
:valueMember="'technologyRating'"
/>
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxTagCloud from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxtagcloud.vue';
const myTagCloud = ref(null);
let data = [
{ countryName: 'Australia', technologyRating: 35, url: 'community' },
{ countryName: 'United States', technologyRating: 60, url: 'community' },
{ countryName: 'Germany', technologyRating: 55, url: 'community' },
{ countryName: 'Brasil', technologyRating: 20, url: 'community' },
{ countryName: 'United Kingdom', technologyRating: 50, url: 'community' },
{ countryName: 'Japan', technologyRating: 80, url: 'community' }
];
const sourceData = {
localdata: data,
datatype: 'array',
datafields: [{ name: 'countryName' }, { name: 'technologyRating' }, { name: 'url' }]
};
const source = ref(new jqx.dataAdapter(sourceData));
function onBindingComplete(event) {
alert('do something...');
}
onMounted(() => {
myTagCloud.value.source = source.value;
});
</script>
|
|
itemClick
# |
Event
|
|
This event is triggered when a tag element is clicked. Event Arguments:
- label - item's label.
- value - item's value.
- url - item's url.
- visibleIndex - item's visible index.
- index - item's index.
- originalEvent - the Click event object.
- target - item's html element.
Code examples #
Bind to the itemClick event of jqxTagCloud.
<template>
<JqxTagCloud
ref="myTagCloud"
@itemClick="onItemClick($event)"
:source="source"
:width="800"
:displayMember="'countryName'"
:valueMember="'technologyRating'"
/>
</template>
<script setup>
import { ref } from 'vue';
import JqxTagCloud from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxtagcloud.vue';
let data = [
{ countryName: 'Australia', technologyRating: 35, url: 'community' },
{ countryName: 'United States', technologyRating: 60, url: 'community' },
{ countryName: 'Germany', technologyRating: 55, url: 'community' },
{ countryName: 'Brasil', technologyRating: 20, url: 'community' },
{ countryName: 'United Kingdom', technologyRating: 50, url: 'community' },
{ countryName: 'Japan', technologyRating: 80, url: 'community' }
];
const sourceData = {
localdata: data,
datatype: 'array',
datafields: [{ name: 'countryName' }, { name: 'technologyRating' }, { name: 'url' }]
};
const source = ref(new jqx.dataAdapter(sourceData));
function onItemClick(event) {
alert('do something...');
}
</script>
|
|
|
| Name | Arguments | Return Type |
|
destroy
# |
None
|
None
|
Calls the widget's destroy function.
<template>
<JqxTagCloud
ref="myTagCloud"
:source="source"
:width="800"
:displayMember="'countryName'"
:valueMember="'technologyRating'"
/>
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxTagCloud from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxtagcloud.vue';
const myTagCloud = ref(null);
let data = [
{ countryName: 'Australia', technologyRating: 35, url: 'community' },
{ countryName: 'United States', technologyRating: 60, url: 'community' },
{ countryName: 'Germany', technologyRating: 55, url: 'community' },
{ countryName: 'Brasil', technologyRating: 20, url: 'community' },
{ countryName: 'United Kingdom', technologyRating: 50, url: 'community' },
{ countryName: 'Japan', technologyRating: 80, url: 'community' }
];
const sourceData = {
localdata: data,
datatype: 'array',
datafields: [{ name: 'countryName' }, { name: 'technologyRating' }, { name: 'url' }]
};
const source = ref(new jqx.dataAdapter(sourceData));
onMounted(() => {
myTagCloud.value.destroy();
});
</script>
|
|
findTagIndex
# |
tag
|
Number
|
Returns the index of the first tag with the specified label (displayMember).
<template>
<JqxTagCloud
ref="myTagCloud"
:source="source"
:width="800"
:displayMember="'countryName'"
:valueMember="'technologyRating'"
/>
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxTagCloud from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxtagcloud.vue';
const myTagCloud = ref(null);
let data = [
{ countryName: 'Australia', technologyRating: 35, url: 'community' },
{ countryName: 'United States', technologyRating: 60, url: 'community' },
{ countryName: 'Germany', technologyRating: 55, url: 'community' },
{ countryName: 'Brasil', technologyRating: 20, url: 'community' },
{ countryName: 'United Kingdom', technologyRating: 50, url: 'community' },
{ countryName: 'Japan', technologyRating: 80, url: 'community' }
];
const sourceData = {
localdata: data,
datatype: 'array',
datafields: [{ name: 'countryName' }, { name: 'technologyRating' }, { name: 'url' }]
};
const source = ref(new jqx.dataAdapter(sourceData));
onMounted(() => {
const value = myTagCloud.value.findTagIndex('Germany');
});
</script>
|
|
getHiddenTagsList
# |
None
|
Array
|
Returns an array with indices of all hidden tags.
<template>
<JqxTagCloud
ref="myTagCloud"
:source="source"
:width="800"
:displayMember="'countryName'"
:valueMember="'technologyRating'"
/>
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxTagCloud from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxtagcloud.vue';
const myTagCloud = ref(null);
let data = [
{ countryName: 'Australia', technologyRating: 35, url: 'community' },
{ countryName: 'United States', technologyRating: 60, url: 'community' },
{ countryName: 'Germany', technologyRating: 55, url: 'community' },
{ countryName: 'Brasil', technologyRating: 20, url: 'community' },
{ countryName: 'United Kingdom', technologyRating: 50, url: 'community' },
{ countryName: 'Japan', technologyRating: 80, url: 'community' }
];
const sourceData = {
localdata: data,
datatype: 'array',
datafields: [{ name: 'countryName' }, { name: 'technologyRating' }, { name: 'url' }]
};
const source = ref(new jqx.dataAdapter(sourceData));
onMounted(() => {
const value = myTagCloud.value.getHiddenTagsList();
});
</script>
|
|
getRenderedTags
# |
None
|
Array
|
Returns an array with a copy of all tags that have been rendered in the order that they have been rendered. This array excludes filtered values. But includes hidden ones.
<template>
<JqxTagCloud
ref="myTagCloud"
:source="source"
:width="800"
:displayMember="'countryName'"
:valueMember="'technologyRating'"
/>
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxTagCloud from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxtagcloud.vue';
const myTagCloud = ref(null);
let data = [
{ countryName: 'Australia', technologyRating: 35, url: 'community' },
{ countryName: 'United States', technologyRating: 60, url: 'community' },
{ countryName: 'Germany', technologyRating: 55, url: 'community' },
{ countryName: 'Brasil', technologyRating: 20, url: 'community' },
{ countryName: 'United Kingdom', technologyRating: 50, url: 'community' },
{ countryName: 'Japan', technologyRating: 80, url: 'community' }
];
const sourceData = {
localdata: data,
datatype: 'array',
datafields: [{ name: 'countryName' }, { name: 'technologyRating' }, { name: 'url' }]
};
const source = ref(new jqx.dataAdapter(sourceData));
onMounted(() => {
const value = myTagCloud.value.getRenderedTags();
});
</script>
|
|
getTagsList
# |
None
|
Array
|
Returns an array with a copy of all tags. This list is used before any filtering/sorting/hiding is done.
<template>
<JqxTagCloud
ref="myTagCloud"
:source="source"
:width="800"
:displayMember="'countryName'"
:valueMember="'technologyRating'"
/>
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxTagCloud from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxtagcloud.vue';
const myTagCloud = ref(null);
let data = [
{ countryName: 'Australia', technologyRating: 35, url: 'community' },
{ countryName: 'United States', technologyRating: 60, url: 'community' },
{ countryName: 'Germany', technologyRating: 55, url: 'community' },
{ countryName: 'Brasil', technologyRating: 20, url: 'community' },
{ countryName: 'United Kingdom', technologyRating: 50, url: 'community' },
{ countryName: 'Japan', technologyRating: 80, url: 'community' }
];
const sourceData = {
localdata: data,
datatype: 'array',
datafields: [{ name: 'countryName' }, { name: 'technologyRating' }, { name: 'url' }]
};
const source = ref(new jqx.dataAdapter(sourceData));
onMounted(() => {
const value = myTagCloud.value.getTagsList();
});
</script>
|
|
hideItem
# |
index
|
None
|
Hides an element with specified index.
<template>
<JqxTagCloud
ref="myTagCloud"
:source="source"
:width="800"
:displayMember="'countryName'"
:valueMember="'technologyRating'"
/>
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxTagCloud from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxtagcloud.vue';
const myTagCloud = ref(null);
let data = [
{ countryName: 'Australia', technologyRating: 35, url: 'community' },
{ countryName: 'United States', technologyRating: 60, url: 'community' },
{ countryName: 'Germany', technologyRating: 55, url: 'community' },
{ countryName: 'Brasil', technologyRating: 20, url: 'community' },
{ countryName: 'United Kingdom', technologyRating: 50, url: 'community' },
{ countryName: 'Japan', technologyRating: 80, url: 'community' }
];
const sourceData = {
localdata: data,
datatype: 'array',
datafields: [{ name: 'countryName' }, { name: 'technologyRating' }, { name: 'url' }]
};
const source = ref(new jqx.dataAdapter(sourceData));
onMounted(() => {
myTagCloud.value.hideItem(1);
});
</script>
|
|
insertAt
# |
index, item
|
None
|
Inserts an element before an element with specified index
<template>
<JqxTagCloud
ref="myTagCloud"
:source="source"
:width="800"
:displayMember="'countryName'"
:valueMember="'technologyRating'"
/>
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxTagCloud from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxtagcloud.vue';
const myTagCloud = ref(null);
let data = [
{ countryName: 'Australia', technologyRating: 35, url: 'community' },
{ countryName: 'United States', technologyRating: 60, url: 'community' },
{ countryName: 'Germany', technologyRating: 55, url: 'community' },
{ countryName: 'Brasil', technologyRating: 20, url: 'community' },
{ countryName: 'United Kingdom', technologyRating: 50, url: 'community' },
{ countryName: 'Japan', technologyRating: 80, url: 'community' }
];
const sourceData = {
localdata: data,
datatype: 'array',
datafields: [{ name: 'countryName' }, { name: 'technologyRating' }, { name: 'url' }]
};
const source = ref(new jqx.dataAdapter(sourceData));
onMounted(() => {
myTagCloud.value.insertAt(1, {
countryName: 'Bulgaria',
technologyRating: 50,
url: 'community'
});
});
</script>
|
|
removeAt
# |
index
|
None
|
Deletes an element with specified index.
<template>
<JqxTagCloud
ref="myTagCloud"
:source="source"
:width="800"
:displayMember="'countryName'"
:valueMember="'technologyRating'"
/>
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxTagCloud from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxtagcloud.vue';
const myTagCloud = ref(null);
let data = [
{ countryName: 'Australia', technologyRating: 35, url: 'community' },
{ countryName: 'United States', technologyRating: 60, url: 'community' },
{ countryName: 'Germany', technologyRating: 55, url: 'community' },
{ countryName: 'Brasil', technologyRating: 20, url: 'community' },
{ countryName: 'United Kingdom', technologyRating: 50, url: 'community' },
{ countryName: 'Japan', technologyRating: 80, url: 'community' }
];
const sourceData = {
localdata: data,
datatype: 'array',
datafields: [{ name: 'countryName' }, { name: 'technologyRating' }, { name: 'url' }]
};
const source = ref(new jqx.dataAdapter(sourceData));
onMounted(() => {
myTagCloud.value.removeAt(1);
});
</script>
|
|
updateAt
# |
index, item
|
None
|
Updates an element with specified index.
<template>
<JqxTagCloud
ref="myTagCloud"
:source="source"
:width="800"
:displayMember="'countryName'"
:valueMember="'technologyRating'"
/>
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxTagCloud from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxtagcloud.vue';
const myTagCloud = ref(null);
let data = [
{ countryName: 'Australia', technologyRating: 35, url: 'community' },
{ countryName: 'United States', technologyRating: 60, url: 'community' },
{ countryName: 'Germany', technologyRating: 55, url: 'community' },
{ countryName: 'Brasil', technologyRating: 20, url: 'community' },
{ countryName: 'United Kingdom', technologyRating: 50, url: 'community' },
{ countryName: 'Japan', technologyRating: 80, url: 'community' }
];
const sourceData = {
localdata: data,
datatype: 'array',
datafields: [{ name: 'countryName' }, { name: 'technologyRating' }, { name: 'url' }]
};
const source = ref(new jqx.dataAdapter(sourceData));
onMounted(() => {
myTagCloud.value.updateAt(1, { countryName: 'USA', technologyRating: 70, url: 'community' });
});
</script>
|
|
showItem
# |
index
|
None
|
Reveals a hidden element with specified index.
<template>
<JqxTagCloud
ref="myTagCloud"
:source="source"
:width="800"
:displayMember="'countryName'"
:valueMember="'technologyRating'"
/>
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxTagCloud from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxtagcloud.vue';
const myTagCloud = ref(null);
let data = [
{ countryName: 'Australia', technologyRating: 35, url: 'community' },
{ countryName: 'United States', technologyRating: 60, url: 'community' },
{ countryName: 'Germany', technologyRating: 55, url: 'community' },
{ countryName: 'Brasil', technologyRating: 20, url: 'community' },
{ countryName: 'United Kingdom', technologyRating: 50, url: 'community' },
{ countryName: 'Japan', technologyRating: 80, url: 'community' }
];
const sourceData = {
localdata: data,
datatype: 'array',
datafields: [{ name: 'countryName' }, { name: 'technologyRating' }, { name: 'url' }]
};
const source = ref(new jqx.dataAdapter(sourceData));
onMounted(() => {
myTagCloud.value.showItem(1);
});
</script>
|