Security News
cURL Project and Go Security Teams Reject CVSS as Broken
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
angular-fusiongrid
Advanced tools
A simple and lightweight official Angular component for FusionGrid JavaScript grid library. Angular Fusiongrid enables you to add grids in your Angular application without any hassle.
A simple and lightweight official Angular component for FusionGrid JavaScript grid library. Angular Fusiongrid enables you to add grids in your Angular application without any hassle.
Using NPM
npm install angular-fusiongrid fusiongrid
Using Yarn
yarn add angular-fusiongrid fusiongrid
Direct Download
All binaries are located in our github repository.
import { FusionGridModule } from 'angular-fusiongrid';
import FusionGrid from 'fusiongrid';
import 'fusiongrid/dist/fusiongrid.css';
FusionGridModule.setFGRoot(FusionGrid);
@Component({
selector: 'app-root',
standalone: true,
imports: [FusionGridModule],
templateUrl: './app.component.html',
styleUrl: './app.component.css',
})
export class AppComponent {
title = 'fusion-grid-test';
schema = [
{
name: 'Rank',
type: 'number',
}, {
name: 'Model'
},
{
name: 'Make'
},
{
name: 'Units Sold',
type: 'number'
},
{
name: 'Assembly Location'
}
];
data = [
[1, "F-Series", "Ford", 896526, "Claycomo, Mo."],
[2, "Pickup", "Ram", 633694, "Warren, Mich."],
[3, "Silverado", "Chevrolet", 575600, "Springfield, Ohio"],
[4, "RAV4", "Toyota", 448071, "Georgetown, Ky."],
[5, "CR-V", "Honda", 384168, "Greensburg, Ind."],
[6, "Rogue", "Nissan", 350447, "Smyrna, Tenn."],
[7, "Equinox", "Chevrolet", 346048, "Arlington, Tex."],
[8, "Camry", "Toyota", 336978, "Georgetown, Ky."],
[9, "Civic", "Honda", 325650, "Greensburg, Ind."],
[10, "Corolla", "Toyota", 304850, "Blue Springs, Miss."],
[11, "Accord", "Honda", 267567, "Marysville, Ohio"],
[12, "Tacoma", "Toyota", 248801, "San Antonio, Tex."],
[13, "Grand Cherokee", "Jeep", 242969, "Detroit, Mich."],
[14, "Escape", "Ford", 241338, "Louisville, Ky."],
[15, "Highlander", "Toyota", 239438, "Princeton, Ind."],
[16, "Sierra", "GMC", 232325, "Flint, Mich."],
[17, "Wrangler", "Jeep", 228032, "Toledo, Ohio"],
[18, "Altima", "Nissan", 209183, "Smyrna, Tenn."],
[19, "Cherokee", "Jeep", 191397, "Belvidere, Ill."],
[20, "Sentra", "Nissan", 184618, "Canton, Miss."],
];
dataTable: any;
gridConfig: any = {
// rowOptions: {
// style: { "background-color": "oldlace" },
// hover: {
// enable: true,
// style: { "background-color": "white" },
// },
// },
pagination: {
enable: false,
pageSize: {
default: 10,
options: true
},
showPages: {
enable: true,
showTotal: true,
userInput: true
}
},
columns: [
{ field: 'Rank', width: '200px' },
{
field: 'Make',
type: 'html',
template: function (params: any) {
var url = "https://static.fusioncharts.com/fg/demo/assets/images/" +
params.values["Make"] + ".png";
var html = '<div><img src="' + url
+ '" width="50px" style="vertical-align:middle"></div>';
return html;
}
},
{
field: 'Units Sold',
width: '160px',
type: 'chart',
tooltip: {
headerTooltip: "Number of units sold globally",
enableHeaderHelperIcon: true,
enableCellTooltip: false
},
formatter: function (params:any) {
return new Intl.NumberFormat().format(params.cellValue);
},
style: function (params:any) {
if (params.cellValue > 600000) {
return { 'background-color': 'lightgreen' }
}
return;
}
},
{
field: 'Assembly Location',
headerText: 'Assembly Location in US'
},
]
}
constructor() {
const dataStore = new FusionGrid.DataStore();
this.dataTable = dataStore.createDataTable(this.data, this.schema, {
enableIndex: false
});
}
updateData() {
this.data = [
[1, "F-Series", "Ford", 896526, "Claycomo, Mo."],
[2, "Pickup", "Ram", 633694, "Warren, Mich."]
];
}
initialized(event: any) {
console.log(event);
}
updateColumns() {
this.gridConfig = {
...this.gridConfig,
columns: [{ field: 'Rank', width: '70px' }, {
field: 'Make',
type: 'html',
template: function (params:any) {
var url = "https://static.fusioncharts.com/fg/demo/assets/images/" +
params.values["Make"] + ".png";
var html = '<div><img src="' + url
+ '" width="50px" style="vertical-align:middle"></div>';
return html;
}
}]
}
}
updateRowOption() {
this.gridConfig = {
...this.gridConfig,
rowOptions: {
style: { "background-color": "red" },
hover: {
enable: true,
style: { "background-color": "white" },
},
},
}
}
updatePagination() {
this.gridConfig = {
...this.gridConfig,
pagination: {
enable: true,
pageSize: {
default: 10,
options: true
},
showPages: {
enable: true,
showTotal: true,
userInput: true
}
},
}
}
}
<fusion-grid
style="width: 1000px; height: 1000px;"
[dataTable]="dataTable"
[gridConfig]="gridConfig">
</fusion-grid>
<fusion-grid
[dataTable]="dataTable"
[gridConfig]="gridConfig"
(initialized)="initialized($event)">
</fusion-grid>
For detailed documentation please visit FusionCharts dev center portal.
FAQs
Angular FusionGrid is the official Angular component for FusionGrid, enabling seamless integration of sophisticated grid functionalities within Angular applications.
The npm package angular-fusiongrid receives a total of 1 weekly downloads. As such, angular-fusiongrid popularity was classified as not popular.
We found that angular-fusiongrid demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.