From c24805389ac3431f68d31f9f11988edbc50ccf44 Mon Sep 17 00:00:00 2001 From: Meher Howji Date: Wed, 6 Mar 2024 19:34:15 +0530 Subject: [PATCH] update package --- package.json | 2 +- projects/demo-project/src/app/app.component.ts | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 5322478..37c06ca 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "angular-fusiongrid", - "version": "1.2.0", + "version": "1.2.1", "scripts": { "ng": "ng", "start": "ng serve", diff --git a/projects/demo-project/src/app/app.component.ts b/projects/demo-project/src/app/app.component.ts index 671fd59..ec6c08b 100644 --- a/projects/demo-project/src/app/app.component.ts +++ b/projects/demo-project/src/app/app.component.ts @@ -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', @@ -49,6 +50,7 @@ export class AppComponent { [19, "Cherokee", "Jeep", 191397, "Belvidere, Ill."], [20, "Sentra", "Nissan", 184618, "Canton, Miss."], ]; + dataTable: any; gridConfig: any = { @@ -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, @@ -140,6 +146,7 @@ export class AppComponent { }] } } + updateRowOption() { this.gridConfig = { ...this.gridConfig,