Skip to content

Commit

Permalink
update package
Browse files Browse the repository at this point in the history
  • Loading branch information
meherhowji-5740 committed Mar 6, 2024
1 parent 4cae164 commit c248053
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-fusiongrid",
"version": "1.2.0",
"version": "1.2.1",
"scripts": {
"ng": "ng",
"start": "ng serve",
Expand Down
9 changes: 8 additions & 1 deletion projects/demo-project/src/app/app.component.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
import { Component } from '@angular/core';
import FusionGrid from "fusiongrid";

@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})

export class AppComponent {
//title = 'fusion-grid-test';

schema = [
{
name: 'Rank',
Expand Down Expand Up @@ -49,6 +50,7 @@ export class AppComponent {
[19, "Cherokee", "Jeep", 191397, "Belvidere, Ill."],
[20, "Sentra", "Nissan", 184618, "Canton, Miss."],
];

dataTable: any;

gridConfig: any = {
Expand Down Expand Up @@ -109,21 +111,25 @@ export class AppComponent {
},
]
}

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,
Expand All @@ -140,6 +146,7 @@ export class AppComponent {
}]
}
}

updateRowOption() {
this.gridConfig = {
...this.gridConfig,
Expand Down

0 comments on commit c248053

Please sign in to comment.