Name | Type | Default |
alterTextCase
|
enum:TagCloudAlterTextCase
|
'none'
|
enum TagCloudAlterTextCase { none, allLower, allUpper, firstUpper, titleCase } Sets or gets the alterTextCase property.
import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTagCloud #myTagCloud
[width]="600" [source]="dataAdapter" [displayMember]="'countryName'"
[valueMember]="'technologyRating'" [alterTextCase]="'titleCase'">
</jqxTagCloud>
`
})
export class AppComponent {
data: any[] = [
{ countryName: "Australia", technologyRating: 35 },
{ countryName: "United States", technologyRating: 60 },
{ countryName: "Germany", technologyRating: 55 },
{ countryName: "Brasil", technologyRating: 20 },
{ countryName: "United Kingdom", technologyRating: 50 },
{ countryName: "Japan", technologyRating: 80 }
];
source: any =
{
localdata: this.data,
datatype: "array",
datafields: [
{ name: 'countryName' },
{ name: 'technologyRating' }
]
};
dataAdapter: any = new jqx.dataAdapter(this.source);
}
|
disabled
|
Boolean
|
false
|
Sets or gets the disabled property.
import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTagCloud #myTagCloud
[width]="600" [source]="dataAdapter" [displayMember]="'countryName'"
[valueMember]="'technologyRating'" [disabled]="true">
</jqxTagCloud>
`
})
export class AppComponent {
data: any[] = [
{ countryName: "Australia", technologyRating: 35 },
{ countryName: "United States", technologyRating: 60 },
{ countryName: "Germany", technologyRating: 55 },
{ countryName: "Brasil", technologyRating: 20 },
{ countryName: "United Kingdom", technologyRating: 50 },
{ countryName: "Japan", technologyRating: 80 }
];
source: any =
{
localdata: this.data,
datatype: "array",
datafields: [
{ name: 'countryName' },
{ name: 'technologyRating' }
]
};
dataAdapter: any = new jqx.dataAdapter(this.source);
}
|
displayLimit
|
Number
|
null
|
Sets or gets the displayLimit property.
import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTagCloud #myTagCloud
[width]="600" [source]="dataAdapter" [displayMember]="'countryName'"
[valueMember]="'technologyRating'" [displayLimit]="3">
</jqxTagCloud>
`
})
export class AppComponent {
data: any[] = [
{ countryName: "Australia", technologyRating: 35 },
{ countryName: "United States", technologyRating: 60 },
{ countryName: "Germany", technologyRating: 55 },
{ countryName: "Brasil", technologyRating: 20 },
{ countryName: "United Kingdom", technologyRating: 50 },
{ countryName: "Japan", technologyRating: 80 }
];
source: any =
{
localdata: this.data,
datatype: "array",
datafields: [
{ name: 'countryName' },
{ name: 'technologyRating' }
]
};
dataAdapter: any = new jqx.dataAdapter(this.source);
}
|
displayMember
|
String
|
'label'
|
Sets or gets the displayMember property.
import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTagCloud #myTagCloud
[width]="600" [source]="dataAdapter" [displayMember]="'countryName'"
[valueMember]="'technologyRating'">
</jqxTagCloud>
`
})
export class AppComponent {
data: any[] = [
{ countryName: "Australia", technologyRating: 35 },
{ countryName: "United States", technologyRating: 60 },
{ countryName: "Germany", technologyRating: 55 },
{ countryName: "Brasil", technologyRating: 20 },
{ countryName: "United Kingdom", technologyRating: 50 },
{ countryName: "Japan", technologyRating: 80 }
];
source: any =
{
localdata: this.data,
datatype: "array",
datafields: [
{ name: 'countryName' },
{ name: 'technologyRating' }
]
};
dataAdapter: any = new jqx.dataAdapter(this.source);
}
|
displayValue
|
Boolean
|
false
|
Sets or gets the displayValue property.
import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTagCloud #myTagCloud
[width]="600" [source]="dataAdapter" [displayMember]="'countryName'"
[valueMember]="'technologyRating'" [displayValue]="true">
</jqxTagCloud>
`
})
export class AppComponent {
data: any[] = [
{ countryName: "Australia", technologyRating: 35 },
{ countryName: "United States", technologyRating: 60 },
{ countryName: "Germany", technologyRating: 55 },
{ countryName: "Brasil", technologyRating: 20 },
{ countryName: "United Kingdom", technologyRating: 50 },
{ countryName: "Japan", technologyRating: 80 }
];
source: any =
{
localdata: this.data,
datatype: "array",
datafields: [
{ name: 'countryName' },
{ name: 'technologyRating' }
]
};
dataAdapter: any = new jqx.dataAdapter(this.source);
}
|
fontSizeUnit
|
enum:TagCloudFontSizeUnit
|
'px'
|
enum TagCloudFontSizeUnit { px, em, % } Sets or gets the fontSizeUnit property.
import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTagCloud #myTagCloud
[width]="600" [source]="dataAdapter" [displayMember]="'countryName'"
[valueMember]="'technologyRating'" [fontSizeUnit]="'em'">
</jqxTagCloud>
`
})
export class AppComponent {
data: any[] = [
{ countryName: "Australia", technologyRating: 35 },
{ countryName: "United States", technologyRating: 60 },
{ countryName: "Germany", technologyRating: 55 },
{ countryName: "Brasil", technologyRating: 20 },
{ countryName: "United Kingdom", technologyRating: 50 },
{ countryName: "Japan", technologyRating: 80 }
];
source: any =
{
localdata: this.data,
datatype: "array",
datafields: [
{ name: 'countryName' },
{ name: 'technologyRating' }
]
};
dataAdapter: any = new jqx.dataAdapter(this.source);
}
|
height
|
String | Number
|
null
|
Sets or gets the height property.
import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTagCloud #myTagCloud
[width]="600" [source]="dataAdapter" [displayMember]="'countryName'"
[valueMember]="'technologyRating'" [height]="50">
</jqxTagCloud>
`
})
export class AppComponent {
data: any[] = [
{ countryName: "Australia", technologyRating: 35 },
{ countryName: "United States", technologyRating: 60 },
{ countryName: "Germany", technologyRating: 55 },
{ countryName: "Brasil", technologyRating: 20 },
{ countryName: "United Kingdom", technologyRating: 50 },
{ countryName: "Japan", technologyRating: 80 }
];
source: any =
{
localdata: this.data,
datatype: "array",
datafields: [
{ name: 'countryName' },
{ name: 'technologyRating' }
]
};
dataAdapter: any = new jqx.dataAdapter(this.source);
}
|
maxColor
|
String
|
null
|
Sets or gets the maxColor property.
import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTagCloud #myTagCloud
[width]="600" [source]="dataAdapter" [displayMember]="'countryName'"
[valueMember]="'technologyRating'" [maxColor]="'darkgreen'">
</jqxTagCloud>
`
})
export class AppComponent {
data: any[] = [
{ countryName: "Australia", technologyRating: 35 },
{ countryName: "United States", technologyRating: 60 },
{ countryName: "Germany", technologyRating: 55 },
{ countryName: "Brasil", technologyRating: 20 },
{ countryName: "United Kingdom", technologyRating: 50 },
{ countryName: "Japan", technologyRating: 80 }
];
source: any =
{
localdata: this.data,
datatype: "array",
datafields: [
{ name: 'countryName' },
{ name: 'technologyRating' }
]
};
dataAdapter: any = new jqx.dataAdapter(this.source);
}
|
maxFontSize
|
Number
|
24
|
Sets or gets the maxFontSize property.
import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTagCloud #myTagCloud
[width]="600" [source]="dataAdapter" [displayMember]="'countryName'"
[valueMember]="'technologyRating'" [maxFontSize]="5">
</jqxTagCloud>
`
})
export class AppComponent {
data: any[] = [
{ countryName: "Australia", technologyRating: 35 },
{ countryName: "United States", technologyRating: 60 },
{ countryName: "Germany", technologyRating: 55 },
{ countryName: "Brasil", technologyRating: 20 },
{ countryName: "United Kingdom", technologyRating: 50 },
{ countryName: "Japan", technologyRating: 80 }
];
source: any =
{
localdata: this.data,
datatype: "array",
datafields: [
{ name: 'countryName' },
{ name: 'technologyRating' }
]
};
dataAdapter: any = new jqx.dataAdapter(this.source);
}
|
maxValueToDisplay
|
Number
|
0
|
Sets or gets the maxValueToDisplay property.
import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTagCloud #myTagCloud
[width]="600" [source]="dataAdapter" [displayMember]="'countryName'"
[valueMember]="'technologyRating'" [maxValueToDisplay]="50">
</jqxTagCloud>
`
})
export class AppComponent {
data: any[] = [
{ countryName: "Australia", technologyRating: 35 },
{ countryName: "United States", technologyRating: 60 },
{ countryName: "Germany", technologyRating: 55 },
{ countryName: "Brasil", technologyRating: 20 },
{ countryName: "United Kingdom", technologyRating: 50 },
{ countryName: "Japan", technologyRating: 80 }
];
source: any =
{
localdata: this.data,
datatype: "array",
datafields: [
{ name: 'countryName' },
{ name: 'technologyRating' }
]
};
dataAdapter: any = new jqx.dataAdapter(this.source);
}
|
minColor
|
String
|
null
|
Sets or gets the minColor property.
import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTagCloud #myTagCloud
[width]="600" [source]="dataAdapter" [displayMember]="'countryName'"
[valueMember]="'technologyRating'" [minColor]="'lime'">
</jqxTagCloud>
`
})
export class AppComponent {
data: any[] = [
{ countryName: "Australia", technologyRating: 35 },
{ countryName: "United States", technologyRating: 60 },
{ countryName: "Germany", technologyRating: 55 },
{ countryName: "Brasil", technologyRating: 20 },
{ countryName: "United Kingdom", technologyRating: 50 },
{ countryName: "Japan", technologyRating: 80 }
];
source: any =
{
localdata: this.data,
datatype: "array",
datafields: [
{ name: 'countryName' },
{ name: 'technologyRating' }
]
};
dataAdapter: any = new jqx.dataAdapter(this.source);
}
|
minFontSize
|
Number
|
10
|
Sets or gets the minFontSize property.
import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTagCloud #myTagCloud
[width]="600" [source]="dataAdapter" [displayMember]="'countryName'"
[valueMember]="'technologyRating'" [minFontSize]="1">
</jqxTagCloud>
`
})
export class AppComponent {
data: any[] = [
{ countryName: "Australia", technologyRating: 35 },
{ countryName: "United States", technologyRating: 60 },
{ countryName: "Germany", technologyRating: 55 },
{ countryName: "Brasil", technologyRating: 20 },
{ countryName: "United Kingdom", technologyRating: 50 },
{ countryName: "Japan", technologyRating: 80 }
];
source: any =
{
localdata: this.data,
datatype: "array",
datafields: [
{ name: 'countryName' },
{ name: 'technologyRating' }
]
};
dataAdapter: any = new jqx.dataAdapter(this.source);
}
|
minValueToDisplay
|
Number
|
0
|
Sets or gets the minValueToDisplay property.
import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTagCloud #myTagCloud
[width]="600" [source]="dataAdapter" [displayMember]="'countryName'"
[valueMember]="'technologyRating'" [minValueToDisplay]="30">
</jqxTagCloud>
`
})
export class AppComponent {
data: any[] = [
{ countryName: "Australia", technologyRating: 35 },
{ countryName: "United States", technologyRating: 60 },
{ countryName: "Germany", technologyRating: 55 },
{ countryName: "Brasil", technologyRating: 20 },
{ countryName: "United Kingdom", technologyRating: 50 },
{ countryName: "Japan", technologyRating: 80 }
];
source: any =
{
localdata: this.data,
datatype: "array",
datafields: [
{ name: 'countryName' },
{ name: 'technologyRating' }
]
};
dataAdapter: any = new jqx.dataAdapter(this.source);
}
|
rtl
|
Boolean
|
false
|
Sets or gets the rtl property.
import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTagCloud #myTagCloud
[width]="600" [source]="dataAdapter" [displayMember]="'countryName'"
[valueMember]="'technologyRating'" [rtl]="true">
</jqxTagCloud>
`
})
export class AppComponent {
data: any[] = [
{ countryName: "Australia", technologyRating: 35 },
{ countryName: "United States", technologyRating: 60 },
{ countryName: "Germany", technologyRating: 55 },
{ countryName: "Brasil", technologyRating: 20 },
{ countryName: "United Kingdom", technologyRating: 50 },
{ countryName: "Japan", technologyRating: 80 }
];
source: any =
{
localdata: this.data,
datatype: "array",
datafields: [
{ name: 'countryName' },
{ name: 'technologyRating' }
]
};
dataAdapter: any = new jqx.dataAdapter(this.source);
}
|
sortBy
|
enum:TagCloudSortBy
|
'none'
|
enum TagCloudSortBy { none, label, value } Sets or gets the sortBy property.
import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTagCloud #myTagCloud
[width]="600" [source]="dataAdapter" [displayMember]="'countryName'"
[valueMember]="'technologyRating'" [sortBy]="'label'">
</jqxTagCloud>
`
})
export class AppComponent {
data: any[] = [
{ countryName: "Australia", technologyRating: 35 },
{ countryName: "United States", technologyRating: 60 },
{ countryName: "Germany", technologyRating: 55 },
{ countryName: "Brasil", technologyRating: 20 },
{ countryName: "United Kingdom", technologyRating: 50 },
{ countryName: "Japan", technologyRating: 80 }
];
source: any =
{
localdata: this.data,
datatype: "array",
datafields: [
{ name: 'countryName' },
{ name: 'technologyRating' }
]
};
dataAdapter: any = new jqx.dataAdapter(this.source);
}
|
sortOrder
|
enum:TagCloudSortOrder
|
'ascending'
|
enum TagCloudSortOrder { ascending, descending } Sets or gets the sortOrder property.
import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTagCloud #myTagCloud
[width]="600" [source]="dataAdapter" [displayMember]="'countryName'"
[valueMember]="'technologyRating'" [sortOrder]="'descending'">
</jqxTagCloud>
`
})
export class AppComponent {
data: any[] = [
{ countryName: "Australia", technologyRating: 35 },
{ countryName: "United States", technologyRating: 60 },
{ countryName: "Germany", technologyRating: 55 },
{ countryName: "Brasil", technologyRating: 20 },
{ countryName: "United Kingdom", technologyRating: 50 },
{ countryName: "Japan", technologyRating: 80 }
];
source: any =
{
localdata: this.data,
datatype: "array",
datafields: [
{ name: 'countryName' },
{ name: 'technologyRating' }
]
};
dataAdapter: any = new jqx.dataAdapter(this.source);
}
|
source
|
TagCloudSource
|
{}
|
interface TagCloudSource { url?: String; data?: Any; localdata?: String; datatype?: TagCloudDataType; type?: String; id?: String; root?: String; record?: String; } Sets or gets the source property.
import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTagCloud #myTagCloud
[width]="600" [source]="dataAdapter" [displayMember]="'countryName'"
[valueMember]="'technologyRating'">
</jqxTagCloud>
`
})
export class AppComponent {
data: any[] = [
{ countryName: "Australia", technologyRating: 35 },
{ countryName: "United States", technologyRating: 60 },
{ countryName: "Germany", technologyRating: 55 },
{ countryName: "Brasil", technologyRating: 20 },
{ countryName: "United Kingdom", technologyRating: 50 },
{ countryName: "Japan", technologyRating: 80 }
];
source: any =
{
localdata: this.data,
datatype: "array",
datafields: [
{ name: 'countryName' },
{ name: 'technologyRating' }
]
};
dataAdapter: any = new jqx.dataAdapter(this.source);
}
|
tagRenderer
|
(itemData: Any, minValue: Number, valueRange: Number) => Any
|
null
|
Sets or gets the tagRenderer property.
import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTagCloud #myTagCloud
[width]="600" [source]="dataAdapter" [displayMember]="'countryName'"
[valueMember]="'technologyRating'" [tagRenderer]="tagRenderer">
</jqxTagCloud>
`
})
export class AppComponent {
data: any[] = [
{ countryName: "Australia", technologyRating: 35 },
{ countryName: "United States", technologyRating: 60 },
{ countryName: "Germany", technologyRating: 55 },
{ countryName: "Brasil", technologyRating: 20 },
{ countryName: "United Kingdom", technologyRating: 50 },
{ countryName: "Japan", technologyRating: 80 }
];
source: any =
{
localdata: this.data,
datatype: "array",
datafields: [
{ name: 'countryName' },
{ name: 'technologyRating' }
]
};
dataAdapter: any = new jqx.dataAdapter(this.source);
}
|
takeTopWeightedItems
|
Boolean
|
false
|
Sets or gets the takeTopWeightedItems property.
import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTagCloud #myTagCloud
[width]="600" [source]="dataAdapter" [displayMember]="'countryName'"
[valueMember]="'technologyRating'" [takeTopWeightedItems]="true">
</jqxTagCloud>
`
})
export class AppComponent {
data: any[] = [
{ countryName: "Australia", technologyRating: 35 },
{ countryName: "United States", technologyRating: 60 },
{ countryName: "Germany", technologyRating: 55 },
{ countryName: "Brasil", technologyRating: 20 },
{ countryName: "United Kingdom", technologyRating: 50 },
{ countryName: "Japan", technologyRating: 80 }
];
source: any =
{
localdata: this.data,
datatype: "array",
datafields: [
{ name: 'countryName' },
{ name: 'technologyRating' }
]
};
dataAdapter: any = new jqx.dataAdapter(this.source);
}
|
textColor
|
String
|
null
|
Sets or gets the textColor property.
import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTagCloud #myTagCloud
[width]="600" [source]="dataAdapter" [displayMember]="'countryName'"
[valueMember]="'technologyRating'" [textColor]="'red'">
</jqxTagCloud>
`
})
export class AppComponent {
data: any[] = [
{ countryName: "Australia", technologyRating: 35 },
{ countryName: "United States", technologyRating: 60 },
{ countryName: "Germany", technologyRating: 55 },
{ countryName: "Brasil", technologyRating: 20 },
{ countryName: "United Kingdom", technologyRating: 50 },
{ countryName: "Japan", technologyRating: 80 }
];
source: any =
{
localdata: this.data,
datatype: "array",
datafields: [
{ name: 'countryName' },
{ name: 'technologyRating' }
]
};
dataAdapter: any = new jqx.dataAdapter(this.source);
}
|
urlBase
|
String
|
''
|
Sets or gets the urlBase property.
import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTagCloud #myTagCloud
[width]="600" [source]="dataAdapter" [displayMember]="'countryName'"
[valueMember]="'technologyRating'" [urlBase]="'http://jqwidgets.com/'">
</jqxTagCloud>
`
})
export class AppComponent {
data: any[] = [
{ countryName: "Australia", technologyRating: 35 },
{ countryName: "United States", technologyRating: 60 },
{ countryName: "Germany", technologyRating: 55 },
{ countryName: "Brasil", technologyRating: 20 },
{ countryName: "United Kingdom", technologyRating: 50 },
{ countryName: "Japan", technologyRating: 80 }
];
source: any =
{
localdata: this.data,
datatype: "array",
datafields: [
{ name: 'countryName' },
{ name: 'technologyRating' }
]
};
dataAdapter: any = new jqx.dataAdapter(this.source);
}
|
urlMember
|
String
|
'url'
|
Sets or gets the urlMember property.
import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTagCloud #myTagCloud
[width]="600" [source]="dataAdapter" [displayMember]="'countryName'"
[valueMember]="'technologyRating'" [urlMember]="'taghref'">
</jqxTagCloud>
`
})
export class AppComponent {
data: any[] = [
{ countryName: "Australia", technologyRating: 35 },
{ countryName: "United States", technologyRating: 60 },
{ countryName: "Germany", technologyRating: 55 },
{ countryName: "Brasil", technologyRating: 20 },
{ countryName: "United Kingdom", technologyRating: 50 },
{ countryName: "Japan", technologyRating: 80 }
];
source: any =
{
localdata: this.data,
datatype: "array",
datafields: [
{ name: 'countryName' },
{ name: 'technologyRating' }
]
};
dataAdapter: any = new jqx.dataAdapter(this.source);
}
|
valueMember
|
String
|
'value'
|
Sets or gets the valueMember property.
import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTagCloud #myTagCloud
[width]="600" [source]="dataAdapter" [displayMember]="'countryName'"
[valueMember]="'technologyRating'">
</jqxTagCloud>
`
})
export class AppComponent {
data: any[] = [
{ countryName: "Australia", technologyRating: 35 },
{ countryName: "United States", technologyRating: 60 },
{ countryName: "Germany", technologyRating: 55 },
{ countryName: "Brasil", technologyRating: 20 },
{ countryName: "United Kingdom", technologyRating: 50 },
{ countryName: "Japan", technologyRating: 80 }
];
source: any =
{
localdata: this.data,
datatype: "array",
datafields: [
{ name: 'countryName' },
{ name: 'technologyRating' }
]
};
dataAdapter: any = new jqx.dataAdapter(this.source);
}
|
width
|
String | Number
|
null
|
Sets or gets the width property.
import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTagCloud #myTagCloud
[width]="600" [source]="dataAdapter" [displayMember]="'countryName'"
[valueMember]="'technologyRating'">
</jqxTagCloud>
`
})
export class AppComponent {
data: any[] = [
{ countryName: "Australia", technologyRating: 35 },
{ countryName: "United States", technologyRating: 60 },
{ countryName: "Germany", technologyRating: 55 },
{ countryName: "Brasil", technologyRating: 20 },
{ countryName: "United Kingdom", technologyRating: 50 },
{ countryName: "Japan", technologyRating: 80 }
];
source: any =
{
localdata: this.data,
datatype: "array",
datafields: [
{ name: 'countryName' },
{ name: 'technologyRating' }
]
};
dataAdapter: any = new jqx.dataAdapter(this.source);
}
|
|
bindingComplete
|
Event
|
|
This event is triggered when the widget has completed binding to a dataAdapter.
Code examples
Bind to the bindingComplete event of jqxTagCloud.
import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTagCloud #myTagCloud(onBindingComplete)="BindingComplete($event)"
[width]="600" [source]="dataAdapter" [displayMember]="'countryName'"
[valueMember]="'technologyRating'">
</jqxTagCloud>
`
})
export class AppComponent {
BindingComplete(event: any): void
{
// Do Something
}
data: any[] = [
{ countryName: "Australia", technologyRating: 35 },
{ countryName: "United States", technologyRating: 60 },
{ countryName: "Germany", technologyRating: 55 },
{ countryName: "Brasil", technologyRating: 20 },
{ countryName: "United Kingdom", technologyRating: 50 },
{ countryName: "Japan", technologyRating: 80 }
];
source: any =
{
localdata: this.data,
datatype: "array",
datafields: [
{ name: 'countryName' },
{ name: 'technologyRating' }
]
};
dataAdapter: any = new jqx.dataAdapter(this.source);
}
|
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.
import { Component } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTagCloud #myTagCloud(onItemClick)="ItemClick($event)"
[width]="600" [source]="dataAdapter" [displayMember]="'countryName'"
[valueMember]="'technologyRating'">
</jqxTagCloud>
`
})
export class AppComponent {
ItemClick(event: any): void
{
// Do Something
}
data: any[] = [
{ countryName: "Australia", technologyRating: 35 },
{ countryName: "United States", technologyRating: 60 },
{ countryName: "Germany", technologyRating: 55 },
{ countryName: "Brasil", technologyRating: 20 },
{ countryName: "United Kingdom", technologyRating: 50 },
{ countryName: "Japan", technologyRating: 80 }
];
source: any =
{
localdata: this.data,
datatype: "array",
datafields: [
{ name: 'countryName' },
{ name: 'technologyRating' }
]
};
dataAdapter: any = new jqx.dataAdapter(this.source);
}
|
|
Name | Return Type | Arguments |
destroy
|
Void
|
None
|
import { Component, ViewChild, AfterViewInit } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTagCloud #myTagCloud
[width]="600" [source]="dataAdapter" [displayMember]="'countryName'"
[valueMember]="'technologyRating'">
</jqxTagCloud>
`
})
export class AppComponent implements AfterViewInit {
@ViewChild('myTagCloud') myTagCloud: jqxTagCloudComponent;
ngAfterViewInit(): void
{
this.myTagCloud.destroy();
}
data: any[] = [
{ countryName: "Australia", technologyRating: 35 },
{ countryName: "United States", technologyRating: 60 },
{ countryName: "Germany", technologyRating: 55 },
{ countryName: "Brasil", technologyRating: 20 },
{ countryName: "United Kingdom", technologyRating: 50 },
{ countryName: "Japan", technologyRating: 80 }
];
source: any =
{
localdata: this.data,
datatype: "array",
datafields: [
{ name: 'countryName' },
{ name: 'technologyRating' }
]
};
dataAdapter: any = new jqx.dataAdapter(this.source);
}
|
findTagIndex
|
Number
|
tag: String
|
import { Component, ViewChild, AfterViewInit } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTagCloud #myTagCloud
[width]="600" [source]="dataAdapter" [displayMember]="'countryName'"
[valueMember]="'technologyRating'">
</jqxTagCloud>
`
})
export class AppComponent implements AfterViewInit {
@ViewChild('myTagCloud') myTagCloud: jqxTagCloudComponent;
ngAfterViewInit(): void
{
let value = this.myTagCloud.findTagIndex('USA');
}
data: any[] = [
{ countryName: "Australia", technologyRating: 35 },
{ countryName: "United States", technologyRating: 60 },
{ countryName: "Germany", technologyRating: 55 },
{ countryName: "Brasil", technologyRating: 20 },
{ countryName: "United Kingdom", technologyRating: 50 },
{ countryName: "Japan", technologyRating: 80 }
];
source: any =
{
localdata: this.data,
datatype: "array",
datafields: [
{ name: 'countryName' },
{ name: 'technologyRating' }
]
};
dataAdapter: any = new jqx.dataAdapter(this.source);
}
|
getHiddenTagsList
|
Array<Any>
|
None
|
import { Component, ViewChild, AfterViewInit } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTagCloud #myTagCloud
[width]="600" [source]="dataAdapter" [displayMember]="'countryName'"
[valueMember]="'technologyRating'">
</jqxTagCloud>
`
})
export class AppComponent implements AfterViewInit {
@ViewChild('myTagCloud') myTagCloud: jqxTagCloudComponent;
ngAfterViewInit(): void
{
let value = this.myTagCloud.getHiddenTagsList();
}
data: any[] = [
{ countryName: "Australia", technologyRating: 35 },
{ countryName: "United States", technologyRating: 60 },
{ countryName: "Germany", technologyRating: 55 },
{ countryName: "Brasil", technologyRating: 20 },
{ countryName: "United Kingdom", technologyRating: 50 },
{ countryName: "Japan", technologyRating: 80 }
];
source: any =
{
localdata: this.data,
datatype: "array",
datafields: [
{ name: 'countryName' },
{ name: 'technologyRating' }
]
};
dataAdapter: any = new jqx.dataAdapter(this.source);
}
|
getRenderedTags
|
Array<Any>
|
None
|
import { Component, ViewChild, AfterViewInit } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTagCloud #myTagCloud
[width]="600" [source]="dataAdapter" [displayMember]="'countryName'"
[valueMember]="'technologyRating'">
</jqxTagCloud>
`
})
export class AppComponent implements AfterViewInit {
@ViewChild('myTagCloud') myTagCloud: jqxTagCloudComponent;
ngAfterViewInit(): void
{
let value = this.myTagCloud.getRenderedTags();
}
data: any[] = [
{ countryName: "Australia", technologyRating: 35 },
{ countryName: "United States", technologyRating: 60 },
{ countryName: "Germany", technologyRating: 55 },
{ countryName: "Brasil", technologyRating: 20 },
{ countryName: "United Kingdom", technologyRating: 50 },
{ countryName: "Japan", technologyRating: 80 }
];
source: any =
{
localdata: this.data,
datatype: "array",
datafields: [
{ name: 'countryName' },
{ name: 'technologyRating' }
]
};
dataAdapter: any = new jqx.dataAdapter(this.source);
}
|
getTagsList
|
Array<Any>
|
None
|
import { Component, ViewChild, AfterViewInit } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTagCloud #myTagCloud
[width]="600" [source]="dataAdapter" [displayMember]="'countryName'"
[valueMember]="'technologyRating'">
</jqxTagCloud>
`
})
export class AppComponent implements AfterViewInit {
@ViewChild('myTagCloud') myTagCloud: jqxTagCloudComponent;
ngAfterViewInit(): void
{
let value = this.myTagCloud.getTagsList();
}
data: any[] = [
{ countryName: "Australia", technologyRating: 35 },
{ countryName: "United States", technologyRating: 60 },
{ countryName: "Germany", technologyRating: 55 },
{ countryName: "Brasil", technologyRating: 20 },
{ countryName: "United Kingdom", technologyRating: 50 },
{ countryName: "Japan", technologyRating: 80 }
];
source: any =
{
localdata: this.data,
datatype: "array",
datafields: [
{ name: 'countryName' },
{ name: 'technologyRating' }
]
};
dataAdapter: any = new jqx.dataAdapter(this.source);
}
|
hideItem
|
Void
|
index: Number
|
import { Component, ViewChild, AfterViewInit } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTagCloud #myTagCloud
[width]="600" [source]="dataAdapter" [displayMember]="'countryName'"
[valueMember]="'technologyRating'">
</jqxTagCloud>
`
})
export class AppComponent implements AfterViewInit {
@ViewChild('myTagCloud') myTagCloud: jqxTagCloudComponent;
ngAfterViewInit(): void
{
this.myTagCloud.hideItem(1);
}
data: any[] = [
{ countryName: "Australia", technologyRating: 35 },
{ countryName: "United States", technologyRating: 60 },
{ countryName: "Germany", technologyRating: 55 },
{ countryName: "Brasil", technologyRating: 20 },
{ countryName: "United Kingdom", technologyRating: 50 },
{ countryName: "Japan", technologyRating: 80 }
];
source: any =
{
localdata: this.data,
datatype: "array",
datafields: [
{ name: 'countryName' },
{ name: 'technologyRating' }
]
};
dataAdapter: any = new jqx.dataAdapter(this.source);
}
|
insertAt
|
Void
|
index: Number, item: Any
|
import { Component, ViewChild, AfterViewInit } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTagCloud #myTagCloud
[width]="600" [source]="dataAdapter" [displayMember]="'countryName'"
[valueMember]="'technologyRating'">
</jqxTagCloud>
`
})
export class AppComponent implements AfterViewInit {
@ViewChild('myTagCloud') myTagCloud: jqxTagCloudComponent;
ngAfterViewInit(): void
{
this.myTagCloud.insertAt(1,'USA');
}
data: any[] = [
{ countryName: "Australia", technologyRating: 35 },
{ countryName: "United States", technologyRating: 60 },
{ countryName: "Germany", technologyRating: 55 },
{ countryName: "Brasil", technologyRating: 20 },
{ countryName: "United Kingdom", technologyRating: 50 },
{ countryName: "Japan", technologyRating: 80 }
];
source: any =
{
localdata: this.data,
datatype: "array",
datafields: [
{ name: 'countryName' },
{ name: 'technologyRating' }
]
};
dataAdapter: any = new jqx.dataAdapter(this.source);
}
|
removeAt
|
Void
|
index: Number
|
import { Component, ViewChild, AfterViewInit } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTagCloud #myTagCloud
[width]="600" [source]="dataAdapter" [displayMember]="'countryName'"
[valueMember]="'technologyRating'">
</jqxTagCloud>
`
})
export class AppComponent implements AfterViewInit {
@ViewChild('myTagCloud') myTagCloud: jqxTagCloudComponent;
ngAfterViewInit(): void
{
this.myTagCloud.removeAt(1);
}
data: any[] = [
{ countryName: "Australia", technologyRating: 35 },
{ countryName: "United States", technologyRating: 60 },
{ countryName: "Germany", technologyRating: 55 },
{ countryName: "Brasil", technologyRating: 20 },
{ countryName: "United Kingdom", technologyRating: 50 },
{ countryName: "Japan", technologyRating: 80 }
];
source: any =
{
localdata: this.data,
datatype: "array",
datafields: [
{ name: 'countryName' },
{ name: 'technologyRating' }
]
};
dataAdapter: any = new jqx.dataAdapter(this.source);
}
|
updateAt
|
Void
|
index: Number, item: Any
|
import { Component, ViewChild, AfterViewInit } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTagCloud #myTagCloud
[width]="600" [source]="dataAdapter" [displayMember]="'countryName'"
[valueMember]="'technologyRating'">
</jqxTagCloud>
`
})
export class AppComponent implements AfterViewInit {
@ViewChild('myTagCloud') myTagCloud: jqxTagCloudComponent;
ngAfterViewInit(): void
{
this.myTagCloud.updateAt(1,'USA');
}
data: any[] = [
{ countryName: "Australia", technologyRating: 35 },
{ countryName: "United States", technologyRating: 60 },
{ countryName: "Germany", technologyRating: 55 },
{ countryName: "Brasil", technologyRating: 20 },
{ countryName: "United Kingdom", technologyRating: 50 },
{ countryName: "Japan", technologyRating: 80 }
];
source: any =
{
localdata: this.data,
datatype: "array",
datafields: [
{ name: 'countryName' },
{ name: 'technologyRating' }
]
};
dataAdapter: any = new jqx.dataAdapter(this.source);
}
|
showItem
|
Void
|
index: Number
|
import { Component, ViewChild, AfterViewInit } from "@angular/core";
@Component({
selector: "app-root",
template: `
<jqxTagCloud #myTagCloud
[width]="600" [source]="dataAdapter" [displayMember]="'countryName'"
[valueMember]="'technologyRating'">
</jqxTagCloud>
`
})
export class AppComponent implements AfterViewInit {
@ViewChild('myTagCloud') myTagCloud: jqxTagCloudComponent;
ngAfterViewInit(): void
{
this.myTagCloud.showItem(1);
}
data: any[] = [
{ countryName: "Australia", technologyRating: 35 },
{ countryName: "United States", technologyRating: 60 },
{ countryName: "Germany", technologyRating: 55 },
{ countryName: "Brasil", technologyRating: 20 },
{ countryName: "United Kingdom", technologyRating: 50 },
{ countryName: "Japan", technologyRating: 80 }
];
source: any =
{
localdata: this.data,
datatype: "array",
datafields: [
{ name: 'countryName' },
{ name: 'technologyRating' }
]
};
dataAdapter: any = new jqx.dataAdapter(this.source);
}
|