| Name | Type | Default |
|---|---|---|
| alterTextCase | TagCloudAlterTextCase | 'none' |
|
TagCloudAlterTextCase: "none" | "allLower" | "allUpper" | "firstUpper" | "titleCase"
Sets or gets the alterTextCase property used to specify the field by which tags should be sorted. /* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxTagCloud, { ITagCloudProps, jqx } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxtagcloud';
class App extends React.PureComponent<{}, ITagCloudProps> {
private myTagCloud = React.createRef<JqxTagCloud>();
constructor(props: {}) {
super(props);
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 source = {
localdata: data,
datatype: "array",
datafields: [
{ name: 'countryName' },
{ name: 'technologyRating' },
{ name: 'url' }
]
};
this.state = {
source: new jqx.dataAdapter(source)
}
}
public render() {
return (
<JqxTagCloud ref={this.myTagCloud}
source={this.state.source} width={800} displayMember={'countryName'} valueMember={'technologyRating'}
alterTextCase={'titleCase'}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| disabled | boolean | false |
|
Enables or disables the ability to follow tag links in jqxTagCloud. /* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxTagCloud, { ITagCloudProps, jqx } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxtagcloud';
class App extends React.PureComponent<{}, ITagCloudProps> {
private myTagCloud = React.createRef<JqxTagCloud>();
constructor(props: {}) {
super(props);
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 source = {
localdata: data,
datatype: "array",
datafields: [
{ name: 'countryName' },
{ name: 'technologyRating' },
{ name: 'url' }
]
};
this.state = {
source: new jqx.dataAdapter(source)
}
}
public render() {
return (
<JqxTagCloud ref={this.myTagCloud}
source={this.state.source} width={800} displayMember={'countryName'} valueMember={'technologyRating'}
disabled={true}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| displayLimit | number | null |
|
Sets or gets the displayLimit property used to filter highest values tags up to the number specified. /* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxTagCloud, { ITagCloudProps, jqx } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxtagcloud';
class App extends React.PureComponent<{}, ITagCloudProps> {
private myTagCloud = React.createRef<JqxTagCloud>();
constructor(props: {}) {
super(props);
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 source = {
localdata: data,
datatype: "array",
datafields: [
{ name: 'countryName' },
{ name: 'technologyRating' },
{ name: 'url' }
]
};
this.state = {
source: new jqx.dataAdapter(source)
}
}
public render() {
return (
<JqxTagCloud ref={this.myTagCloud}
source={this.state.source} width={800} displayMember={'countryName'} valueMember={'technologyRating'}
displayLimit={3}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| displayMember | string | 'label' |
|
Sets or gets the field name used for the tag label. /* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxTagCloud, { ITagCloudProps, jqx } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxtagcloud';
class App extends React.PureComponent<{}, ITagCloudProps> {
private myTagCloud = React.createRef<JqxTagCloud>();
constructor(props: {}) {
super(props);
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 source = {
localdata: data,
datatype: "array",
datafields: [
{ name: 'countryName' },
{ name: 'technologyRating' },
{ name: 'url' }
]
};
this.state = {
source: new jqx.dataAdapter(source)
}
}
public render() {
return (
<JqxTagCloud ref={this.myTagCloud}
source={this.state.source} width={800} displayMember={'countryName'} valueMember={'technologyRating'}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| displayValue | boolean | false |
|
Sets or gets the displayValue property used to specify whether to add the tag value field after the text. /* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxTagCloud, { ITagCloudProps, jqx } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxtagcloud';
class App extends React.PureComponent<{}, ITagCloudProps> {
private myTagCloud = React.createRef<JqxTagCloud>();
constructor(props: {}) {
super(props);
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 source = {
localdata: data,
datatype: "array",
datafields: [
{ name: 'countryName' },
{ name: 'technologyRating' },
{ name: 'url' }
]
};
this.state = {
source: new jqx.dataAdapter(source)
}
}
public render() {
return (
<JqxTagCloud ref={this.myTagCloud}
source={this.state.source} width={800} displayMember={'countryName'} valueMember={'technologyRating'}
displayValue={true}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| fontSizeUnit | TagCloudFontSizeUnit | 'px' |
|
TagCloudFontSizeUnit: "px" | "em" | "%"
Sets or gets the fontSizeUnit property used to set the font size unit possible values 'px', 'em', '%' /* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxTagCloud, { ITagCloudProps, jqx } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxtagcloud';
class App extends React.PureComponent<{}, ITagCloudProps> {
private myTagCloud = React.createRef<JqxTagCloud>();
constructor(props: {}) {
super(props);
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 source = {
localdata: data,
datatype: "array",
datafields: [
{ name: 'countryName' },
{ name: 'technologyRating' },
{ name: 'url' }
]
};
this.state = {
source: new jqx.dataAdapter(source)
}
}
public render() {
return (
<JqxTagCloud ref={this.myTagCloud}
source={this.state.source} width={800} displayMember={'countryName'} valueMember={'technologyRating'}
fontSizeUnit={'em'}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| height | number | string | null |
|
Sets or gets the jqxTagCloud's height. /* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxTagCloud, { ITagCloudProps, jqx } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxtagcloud';
class App extends React.PureComponent<{}, ITagCloudProps> {
private myTagCloud = React.createRef<JqxTagCloud>();
constructor(props: {}) {
super(props);
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 source = {
localdata: data,
datatype: "array",
datafields: [
{ name: 'countryName' },
{ name: 'technologyRating' },
{ name: 'url' }
]
};
this.state = {
source: new jqx.dataAdapter(source)
}
}
public render() {
return (
<JqxTagCloud ref={this.myTagCloud}
source={this.state.source} width={800} displayMember={'countryName'} valueMember={'technologyRating'}
height={50}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| maxColor | string | null |
|
Sets or gets the maxColor property used to specify color of the tags for the elements with highest value attribute. /* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxTagCloud, { ITagCloudProps, jqx } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxtagcloud';
class App extends React.PureComponent<{}, ITagCloudProps> {
private myTagCloud = React.createRef<JqxTagCloud>();
constructor(props: {}) {
super(props);
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 source = {
localdata: data,
datatype: "array",
datafields: [
{ name: 'countryName' },
{ name: 'technologyRating' },
{ name: 'url' }
]
};
this.state = {
source: new jqx.dataAdapter(source)
}
}
public render() {
return (
<JqxTagCloud ref={this.myTagCloud}
source={this.state.source} width={800} displayMember={'countryName'} valueMember={'technologyRating'}
maxColor={'darkgreen'} minColor={'lime'}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| maxFontSize | number | 24 |
|
Sets or gets the maxFontSize property used to set the font size of the tags with the highest value attribute. /* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxTagCloud, { ITagCloudProps, jqx } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxtagcloud';
class App extends React.PureComponent<{}, ITagCloudProps> {
private myTagCloud = React.createRef<JqxTagCloud>();
constructor(props: {}) {
super(props);
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 source = {
localdata: data,
datatype: "array",
datafields: [
{ name: 'countryName' },
{ name: 'technologyRating' },
{ name: 'url' }
]
};
this.state = {
source: new jqx.dataAdapter(source)
}
}
public render() {
return (
<JqxTagCloud ref={this.myTagCloud}
source={this.state.source} width={800} displayMember={'countryName'} valueMember={'technologyRating'}
maxFontSize={5}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| maxValueToDisplay | number | 0 |
|
Sets or gets the maxValueToDisplay property used to filter tags with value higher than the specified. /* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxTagCloud, { ITagCloudProps, jqx } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxtagcloud';
class App extends React.PureComponent<{}, ITagCloudProps> {
private myTagCloud = React.createRef<JqxTagCloud>();
constructor(props: {}) {
super(props);
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 source = {
localdata: data,
datatype: "array",
datafields: [
{ name: 'countryName' },
{ name: 'technologyRating' },
{ name: 'url' }
]
};
this.state = {
source: new jqx.dataAdapter(source)
}
}
public render() {
return (
<JqxTagCloud ref={this.myTagCloud}
source={this.state.source} width={800} displayMember={'countryName'} valueMember={'technologyRating'}
maxValueToDisplay={50}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| minColor | string | null |
|
Sets or gets the minColor property used to specify color of the tags for the elements with lowest value attribute. /* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxTagCloud, { ITagCloudProps, jqx } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxtagcloud';
class App extends React.PureComponent<{}, ITagCloudProps> {
private myTagCloud = React.createRef<JqxTagCloud>();
constructor(props: {}) {
super(props);
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 source = {
localdata: data,
datatype: "array",
datafields: [
{ name: 'countryName' },
{ name: 'technologyRating' },
{ name: 'url' }
]
};
this.state = {
source: new jqx.dataAdapter(source)
}
}
public render() {
return (
<JqxTagCloud ref={this.myTagCloud}
source={this.state.source} width={800} displayMember={'countryName'} valueMember={'technologyRating'}
maxColor={'darkgreen'} minColor={'lime'}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| minFontSize | number | 10 |
|
Sets or gets the minFontSize property used to set the font size of the tags with the lowest value attribute. /* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxTagCloud, { ITagCloudProps, jqx } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxtagcloud';
class App extends React.PureComponent<{}, ITagCloudProps> {
private myTagCloud = React.createRef<JqxTagCloud>();
constructor(props: {}) {
super(props);
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 source = {
localdata: data,
datatype: "array",
datafields: [
{ name: 'countryName' },
{ name: 'technologyRating' },
{ name: 'url' }
]
};
this.state = {
source: new jqx.dataAdapter(source)
}
}
public render() {
return (
<JqxTagCloud ref={this.myTagCloud}
source={this.state.source} width={800} displayMember={'countryName'} valueMember={'technologyRating'}
minFontSize={1}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| minValueToDisplay | number | 0 |
|
Sets or gets the minValueToDisplay property used to filter tags with value lower than the specified. /* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxTagCloud, { ITagCloudProps, jqx } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxtagcloud';
class App extends React.PureComponent<{}, ITagCloudProps> {
private myTagCloud = React.createRef<JqxTagCloud>();
constructor(props: {}) {
super(props);
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 source = {
localdata: data,
datatype: "array",
datafields: [
{ name: 'countryName' },
{ name: 'technologyRating' },
{ name: 'url' }
]
};
this.state = {
source: new jqx.dataAdapter(source)
}
}
public render() {
return (
<JqxTagCloud ref={this.myTagCloud}
source={this.state.source} width={800} displayMember={'countryName'} valueMember={'technologyRating'}
minValueToDisplay={30}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| rtl | boolean | false |
|
Sets or gets a value indicating whether widget's elements are aligned to support locales using right-to-left fonts. /* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxTagCloud, { ITagCloudProps, jqx } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxtagcloud';
class App extends React.PureComponent<{}, ITagCloudProps> {
private myTagCloud = React.createRef<JqxTagCloud>();
constructor(props: {}) {
super(props);
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 source = {
localdata: data,
datatype: "array",
datafields: [
{ name: 'countryName' },
{ name: 'technologyRating' },
{ name: 'url' }
]
};
this.state = {
source: new jqx.dataAdapter(source)
}
}
public render() {
return (
<JqxTagCloud ref={this.myTagCloud}
source={this.state.source} width={800} displayMember={'countryName'} valueMember={'technologyRating'}
rtl={true}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| sortBy | TagCloudSortBy | 'none' |
|
TagCloudSortBy: "none" | "label" | "value"
Sets or gets the sortBy property used to specify the field by which tags should be sorted. /* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxTagCloud, { ITagCloudProps, jqx } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxtagcloud';
class App extends React.PureComponent<{}, ITagCloudProps> {
private myTagCloud = React.createRef<JqxTagCloud>();
constructor(props: {}) {
super(props);
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 source = {
localdata: data,
datatype: "array",
datafields: [
{ name: 'countryName' },
{ name: 'technologyRating' },
{ name: 'url' }
]
};
this.state = {
source: new jqx.dataAdapter(source)
}
}
public render() {
return (
<JqxTagCloud ref={this.myTagCloud}
source={this.state.source} width={800} displayMember={'countryName'} valueMember={'technologyRating'}
sortBy={'label'}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| sortOrder | TagCloudSortOrder | 'ascending' |
|
TagCloudSortOrder: "ascending" | "descending"
Sets or gets the sortOrder property used to specify the direction in which tags should be sorted. /* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxTagCloud, { ITagCloudProps, jqx } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxtagcloud';
class App extends React.PureComponent<{}, ITagCloudProps> {
private myTagCloud = React.createRef<JqxTagCloud>();
constructor(props: {}) {
super(props);
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 source = {
localdata: data,
datatype: "array",
datafields: [
{ name: 'countryName' },
{ name: 'technologyRating' },
{ name: 'url' }
]
};
this.state = {
source: new jqx.dataAdapter(source)
}
}
public render() {
return (
<JqxTagCloud ref={this.myTagCloud}
source={this.state.source} width={800} displayMember={'countryName'} valueMember={'technologyRating'}
sortBy={'label'} sortOrder={'descending'}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| source | TagCloudSource | {} |
|
TagCloudDataType: "xml" | "json" | "jsonp" | "tsv" | "csv" | "local" | "array" | "observablearray"
Interface TagCloudSource { url?: string; data?: any; localdata?: string; datatype?: TagCloudDataType; type?: string; id?: string; root?: string; record?: string; } /* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxTagCloud, { ITagCloudProps, jqx } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxtagcloud';
class App extends React.PureComponent<{}, ITagCloudProps> {
private myTagCloud = React.createRef<JqxTagCloud>();
constructor(props: {}) {
super(props);
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 source = {
localdata: data,
datatype: "array",
datafields: [
{ name: 'countryName' },
{ name: 'technologyRating' },
{ name: 'url' }
]
};
this.state = {
source: new jqx.dataAdapter(source)
}
}
public render() {
return (
<JqxTagCloud ref={this.myTagCloud}
source={this.state.source} width={800} displayMember={'countryName'} valueMember={'technologyRating'}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| tagRenderer | (itemData: TagCloudTagRenderer['itemData'], minValue: TagCloudTagRenderer['minValue'], valueRange: TagCloudTagRenderer['valueRange']) => any | null |
|
Interface TagCloudTagRenderer {
itemData?: any; minValue?: number; valueRange?: number; } 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. /* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxTagCloud, { ITagCloudProps, jqx } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxtagcloud';
class App extends React.PureComponent<{}, ITagCloudProps> {
private myTagCloud = React.createRef<JqxTagCloud>();
constructor(props: {}) {
super(props);
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 source = {
localdata: data,
datatype: "array",
datafields: [
{ name: 'countryName' },
{ name: 'technologyRating' },
{ name: 'url' }
]
};
this.state = {
tagRenderer: (itemData: any, minValue: number, valueRange: number): any => {
return '<i>' + itemData.countryName + '</i>';
},
source: new jqx.dataAdapter(source)
}
}
public render() {
return (
<JqxTagCloud ref={this.myTagCloud}
source={this.state.source} width={800} displayMember={'countryName'} valueMember={'technologyRating'}
tagRenderer={this.state.tagRenderer}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| takeTopWeightedItems | boolean | false |
|
Sets or gets the takeTopWeightedItems property. Property indicates if displayLimit will prioritize highest value members /* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxTagCloud, { ITagCloudProps, jqx } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxtagcloud';
class App extends React.PureComponent<{}, ITagCloudProps> {
private myTagCloud = React.createRef<JqxTagCloud>();
constructor(props: {}) {
super(props);
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 source = {
localdata: data,
datatype: "array",
datafields: [
{ name: 'countryName' },
{ name: 'technologyRating' },
{ name: 'url' }
]
};
this.state = {
source: new jqx.dataAdapter(source)
}
}
public render() {
return (
<JqxTagCloud ref={this.myTagCloud}
source={this.state.source} width={800} displayMember={'countryName'} valueMember={'technologyRating'}
takeTopWeightedItems={true}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| 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. /* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxTagCloud, { ITagCloudProps, jqx } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxtagcloud';
class App extends React.PureComponent<{}, ITagCloudProps> {
private myTagCloud = React.createRef<JqxTagCloud>();
constructor(props: {}) {
super(props);
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 source = {
localdata: data,
datatype: "array",
datafields: [
{ name: 'countryName' },
{ name: 'technologyRating' },
{ name: 'url' }
]
};
this.state = {
source: new jqx.dataAdapter(source)
}
}
public render() {
return (
<JqxTagCloud ref={this.myTagCloud}
source={this.state.source} width={800} displayMember={'countryName'} valueMember={'technologyRating'}
textColor={'red'}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| urlBase | string | '' |
|
Sets or gets the field name used for common base URL path for all tags. /* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxTagCloud, { ITagCloudProps, jqx } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxtagcloud';
class App extends React.PureComponent<{}, ITagCloudProps> {
private myTagCloud = React.createRef<JqxTagCloud>();
constructor(props: {}) {
super(props);
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 source = {
localdata: data,
datatype: "array",
datafields: [
{ name: 'countryName' },
{ name: 'technologyRating' },
{ name: 'url' }
]
};
this.state = {
source: new jqx.dataAdapter(source)
}
}
public render() {
return (
<JqxTagCloud ref={this.myTagCloud}
source={this.state.source} width={800} displayMember={'countryName'} valueMember={'technologyRating'}
urlBase={'http://jqwidgets.com/'} urlMember={'url'}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| urlMember | string | 'url' |
|
Sets or gets the field name used by the anchor element. /* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxTagCloud, { ITagCloudProps, jqx } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxtagcloud';
class App extends React.PureComponent<{}, ITagCloudProps> {
private myTagCloud = React.createRef<JqxTagCloud>();
constructor(props: {}) {
super(props);
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 source = {
localdata: data,
datatype: "array",
datafields: [
{ name: 'countryName' },
{ name: 'technologyRating' },
{ name: 'url' }
]
};
this.state = {
source: new jqx.dataAdapter(source)
}
}
public render() {
return (
<JqxTagCloud ref={this.myTagCloud}
source={this.state.source} width={800} displayMember={'countryName'} valueMember={'technologyRating'}
urlMember={'url'}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| valueMember | string | 'value' |
|
Sets or gets the field name used for value/weight. /* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxTagCloud, { ITagCloudProps, jqx } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxtagcloud';
class App extends React.PureComponent<{}, ITagCloudProps> {
private myTagCloud = React.createRef<JqxTagCloud>();
constructor(props: {}) {
super(props);
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 source = {
localdata: data,
datatype: "array",
datafields: [
{ name: 'countryName' },
{ name: 'technologyRating' },
{ name: 'url' }
]
};
this.state = {
source: new jqx.dataAdapter(source)
}
}
public render() {
return (
<JqxTagCloud ref={this.myTagCloud}
source={this.state.source} width={800} displayMember={'countryName'} valueMember={'technologyRating'}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| width | string | number | null |
|
Sets or gets the jqxTagCloud's width. /* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxTagCloud, { ITagCloudProps, jqx } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxtagcloud';
class App extends React.PureComponent<{}, ITagCloudProps> {
private myTagCloud = React.createRef<JqxTagCloud>();
constructor(props: {}) {
super(props);
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 source = {
localdata: data,
datatype: "array",
datafields: [
{ name: 'countryName' },
{ name: 'technologyRating' },
{ name: 'url' }
]
};
this.state = {
source: new jqx.dataAdapter(source)
}
}
public render() {
return (
<JqxTagCloud ref={this.myTagCloud}
source={this.state.source} width={800} displayMember={'countryName'} valueMember={'technologyRating'}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
Events |
||
| bindingComplete | Event | |
|
This event is triggered when the widget has completed binding to a dataAdapter. Code examples
Bind to the
/* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxTagCloud, { ITagCloudProps, jqx } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxtagcloud';
class App extends React.PureComponent<{}, ITagCloudProps> {
private myTagCloud = React.createRef<JqxTagCloud>();
constructor(props: {}) {
super(props);
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 source = {
localdata: data,
datatype: "array",
datafields: [
{ name: 'countryName' },
{ name: 'technologyRating' },
{ name: 'url' }
]
};
this.state = {
source: new jqx.dataAdapter(source)
}
}
public componentDidMount(): void {
this.myTagCloud.current!.setOptions({ source: this.source });
}
public render() {
return (
<JqxTagCloud ref={this.myTagCloud} onBindingComplete={this.onBindingComplete}
source={this.state.source} width={800} displayMember={'countryName'} valueMember={'technologyRating'}
/>
);
}
private onBindingComplete(e: Event): void {
alert('do something...');
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| itemClick | Event | |
|
This event is triggered when a tag element is clicked. Event Arguments:
Code examples
Bind to the
/* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxTagCloud, { ITagCloudProps, jqx } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxtagcloud';
class App extends React.PureComponent<{}, ITagCloudProps> {
private myTagCloud = React.createRef<JqxTagCloud>();
constructor(props: {}) {
super(props);
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 source = {
localdata: data,
datatype: "array",
datafields: [
{ name: 'countryName' },
{ name: 'technologyRating' },
{ name: 'url' }
]
};
this.state = {
source: new jqx.dataAdapter(source)
}
}
public render() {
return (
<JqxTagCloud ref={this.myTagCloud} onItemClick={this.onItemClick}
source={this.state.source} width={800} displayMember={'countryName'} valueMember={'technologyRating'}
/>
);
}
private onItemClick(e: Event): void {
alert('do something...');
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
Methods |
||
| Name | Arguments | Return Type |
| destroy | None | |
|
Calls the widget's destroy function. /* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxTagCloud, { ITagCloudProps, jqx } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxtagcloud';
class App extends React.PureComponent<{}, ITagCloudProps> {
private myTagCloud = React.createRef<JqxTagCloud>();
constructor(props: {}) {
super(props);
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 source = {
localdata: data,
datatype: "array",
datafields: [
{ name: 'countryName' },
{ name: 'technologyRating' },
{ name: 'url' }
]
};
this.state = {
source: new jqx.dataAdapter(source)
}
}
public componentDidMount(): void {
this.myTagCloud.current!.destroy();
}
public render() {
return (
<JqxTagCloud ref={this.myTagCloud}
source={this.state.source} width={800} displayMember={'countryName'} valueMember={'technologyRating'}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| findTagIndex | tag | |
|
Returns the index of the first tag with the specified label (displayMember). /* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxTagCloud, { ITagCloudProps, jqx } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxtagcloud';
class App extends React.PureComponent<{}, ITagCloudProps> {
private myTagCloud = React.createRef<JqxTagCloud>();
constructor(props: {}) {
super(props);
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 source = {
localdata: data,
datatype: "array",
datafields: [
{ name: 'countryName' },
{ name: 'technologyRating' },
{ name: 'url' }
]
};
this.state = {
source: new jqx.dataAdapter(source)
}
}
public componentDidMount(): void {
this.myTagCloud.current!.findTagIndex('Germany');
}
public render() {
return (
<JqxTagCloud ref={this.myTagCloud}
source={this.state.source} width={800} displayMember={'countryName'} valueMember={'technologyRating'}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| getHiddenTagsList | None | |
|
Returns an array with indices of all hidden tags. /* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxTagCloud, { ITagCloudProps, jqx } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxtagcloud';
class App extends React.PureComponent<{}, ITagCloudProps> {
private myTagCloud = React.createRef<JqxTagCloud>();
constructor(props: {}) {
super(props);
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 source = {
localdata: data,
datatype: "array",
datafields: [
{ name: 'countryName' },
{ name: 'technologyRating' },
{ name: 'url' }
]
};
this.state = {
source: new jqx.dataAdapter(source)
}
}
public componentDidMount(): void {
this.myTagCloud.current!.getHiddenTagsList();
}
public render() {
return (
<JqxTagCloud ref={this.myTagCloud}
source={this.state.source} width={800} displayMember={'countryName'} valueMember={'technologyRating'}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| getRenderedTags | None | |
|
Returns an array with a copy of all tags that have been rendered in the order that they have been rendered. /* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxTagCloud, { ITagCloudProps, jqx } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxtagcloud';
class App extends React.PureComponent<{}, ITagCloudProps> {
private myTagCloud = React.createRef<JqxTagCloud>();
constructor(props: {}) {
super(props);
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 source = {
localdata: data,
datatype: "array",
datafields: [
{ name: 'countryName' },
{ name: 'technologyRating' },
{ name: 'url' }
]
};
this.state = {
source: new jqx.dataAdapter(source)
}
}
public componentDidMount(): void {
this.myTagCloud.current!.getRenderedTags();
}
public render() {
return (
<JqxTagCloud ref={this.myTagCloud}
source={this.state.source} width={800} displayMember={'countryName'} valueMember={'technologyRating'}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| getTagsList | None | |
|
Returns an array with a copy of all tags. /* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxTagCloud, { ITagCloudProps, jqx } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxtagcloud';
class App extends React.PureComponent<{}, ITagCloudProps> {
private myTagCloud = React.createRef<JqxTagCloud>();
constructor(props: {}) {
super(props);
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 source = {
localdata: data,
datatype: "array",
datafields: [
{ name: 'countryName' },
{ name: 'technologyRating' },
{ name: 'url' }
]
};
this.state = {
source: new jqx.dataAdapter(source)
}
}
public componentDidMount(): void {
this.myTagCloud.current!.getTagsList();
}
public render() {
return (
<JqxTagCloud ref={this.myTagCloud}
source={this.state.source} width={800} displayMember={'countryName'} valueMember={'technologyRating'}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| hideItem | index | |
|
Hides an element with specified index. /* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxTagCloud, { ITagCloudProps, jqx } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxtagcloud';
class App extends React.PureComponent<{}, ITagCloudProps> {
private myTagCloud = React.createRef<JqxTagCloud>();
constructor(props: {}) {
super(props);
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 source = {
localdata: data,
datatype: "array",
datafields: [
{ name: 'countryName' },
{ name: 'technologyRating' },
{ name: 'url' }
]
};
this.state = {
source: new jqx.dataAdapter(source)
}
}
public componentDidMount(): void {
this.myTagCloud.current!.hideItem(1);
}
public render() {
return (
<JqxTagCloud ref={this.myTagCloud}
source={this.state.source} width={800} displayMember={'countryName'} valueMember={'technologyRating'}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| insertAt | index, item | |
|
Inserts an element before an element with specified index /* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxTagCloud, { ITagCloudProps, jqx } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxtagcloud';
class App extends React.PureComponent<{}, ITagCloudProps> {
private myTagCloud = React.createRef<JqxTagCloud>();
constructor(props: {}) {
super(props);
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 source = {
localdata: data,
datatype: "array",
datafields: [
{ name: 'countryName' },
{ name: 'technologyRating' },
{ name: 'url' }
]
};
this.state = {
source: new jqx.dataAdapter(source)
}
}
public componentDidMount(): void {
this.myTagCloud.current!.insertAt(1,{ countryName: "Bulgaria", technologyRating: 50, url: "community" });
}
public render() {
return (
<JqxTagCloud ref={this.myTagCloud}
source={this.state.source} width={800} displayMember={'countryName'} valueMember={'technologyRating'}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| removeAt | index | |
|
Deletes an element with specified index. /* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxTagCloud, { ITagCloudProps, jqx } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxtagcloud';
class App extends React.PureComponent<{}, ITagCloudProps> {
private myTagCloud = React.createRef<JqxTagCloud>();
constructor(props: {}) {
super(props);
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 source = {
localdata: data,
datatype: "array",
datafields: [
{ name: 'countryName' },
{ name: 'technologyRating' },
{ name: 'url' }
]
};
this.state = {
source: new jqx.dataAdapter(source)
}
}
public componentDidMount(): void {
this.myTagCloud.current!.removeAt(1);
}
public render() {
return (
<JqxTagCloud ref={this.myTagCloud}
source={this.state.source} width={800} displayMember={'countryName'} valueMember={'technologyRating'}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| updateAt | index, item | |
|
Updates an element with specified index. /* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxTagCloud, { ITagCloudProps, jqx } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxtagcloud';
class App extends React.PureComponent<{}, ITagCloudProps> {
private myTagCloud = React.createRef<JqxTagCloud>();
constructor(props: {}) {
super(props);
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 source = {
localdata: data,
datatype: "array",
datafields: [
{ name: 'countryName' },
{ name: 'technologyRating' },
{ name: 'url' }
]
};
this.state = {
source: new jqx.dataAdapter(source)
}
}
public componentDidMount(): void {
this.myTagCloud.current!.updateAt(1,{ countryName: "USA", technologyRating: 70, url: "community" });
}
public render() {
return (
<JqxTagCloud ref={this.myTagCloud}
source={this.state.source} width={800} displayMember={'countryName'} valueMember={'technologyRating'}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||
| showItem | index | |
|
Reveals a hidden element with specified index. /* tslint:disable */
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import JqxTagCloud, { ITagCloudProps, jqx } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxtagcloud';
class App extends React.PureComponent<{}, ITagCloudProps> {
private myTagCloud = React.createRef<JqxTagCloud>();
constructor(props: {}) {
super(props);
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 source = {
localdata: data,
datatype: "array",
datafields: [
{ name: 'countryName' },
{ name: 'technologyRating' },
{ name: 'url' }
]
};
this.state = {
source: new jqx.dataAdapter(source)
}
}
public componentDidMount(): void {
this.myTagCloud.current!.showItem(1);
}
public render() {
return (
<JqxTagCloud ref={this.myTagCloud}
source={this.state.source} width={800} displayMember={'countryName'} valueMember={'technologyRating'}
/>
);
}
}
ReactDOM.render(<App />, document.querySelector('#app') as HTMLElement);
|
||