ngx-deebodata 0.1.8 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +26 -13
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,30 +1,42 @@
1
1
  # NgxDeebodata
2
2
 
3
- Angular data grid with virtual scroll, integrated charts, row grouping, column resizing, toggle column visibility, cell editing, tab accessibility, sorting with priority, and advanced filtering. This package uses only basic @angular packages and rxjs as peer dependencies.
3
+ Angular data grid with virtual scroll, integrated charts, row grouping, column resizing, toggle column visibility, cell editing, tab accessibility, sorting with priority, and advanced filtering. This package uses only basic @angular packages and rxjs as peer dependencies.
4
+
4
5
 
5
6
  # Licensing
6
7
 
7
8
  Install this package and use the full functionality when developing locally at http://localhost:4200
8
9
 
9
- To deploy to any live url, you need to obtain a **deployment license** for each developer on the project from https://deebodata.com/data-grid-checkout/angular
10
+ To deploy to any live url, you need to obtain a **deployment license** for each developer on the project from https://deebodata.com/data-grid-checkout/angular
11
+
10
12
 
11
13
  ## Report Issues
12
14
 
13
- You can report an issue at https://deebodata.com/contact-us
15
+ You can report an issue at https://deebodata.com/contact-us
16
+
14
17
 
15
18
  ## Usage
16
19
 
17
20
  **In the .ts component you want to use the data grid in**
18
21
 
19
22
  ```
23
+ import { Component, signal } from '@angular/core';
20
24
  import { NgxDeebodata } from 'ngx-deebodata';
21
25
 
22
26
  @Component({
23
- selector: 'app-your-component',
27
+ selector: 'app-root',
24
28
  imports: [ NgxDeebodata ],
25
- templateUrl: './your-component.html',
26
- styleUrl: './your-component.css'
29
+ templateUrl: './app.html',
30
+ styleUrl: './app.css'
27
31
  })
32
+
33
+ export class App {
34
+
35
+ sampleData = signal<any[]>([ { name: "Dave", salary: 200000, title: "CEO" }, {name: "Amy", salary: 164000, title: "CIO" },
36
+ {name: "Ted", salary: 60000, title: "QA Engineer" }, {name: "Sarah", salary: 95000, title: "Engineer" },
37
+ {name: "Adam", salary: 164000, title: "CFO" }, {name: "Krishna", salary: 105000, title: "Architect" }])
38
+
39
+ }
28
40
  ```
29
41
 
30
42
  **In the template of the component**
@@ -33,7 +45,7 @@ import { NgxDeebodata } from 'ngx-deebodata';
33
45
  <ngx-deebodata
34
46
  [editable]="true"
35
47
  [rowNumbers]="true"
36
- [data]="signalArrayOfObjects()"
48
+ [data]="sampleData()"
37
49
  [color1]="'navy'"
38
50
  [color2]="'lightblue'"
39
51
  [primaryKey]="'employee_id'"
@@ -77,7 +89,7 @@ symbols: ColumnSymbol[] = [{ column: "salary", symbol: "$" }];
77
89
 
78
90
  ```
79
91
  <ngx-deebodata
80
- [data]="signalArrayOfObjects()"
92
+ [data]="sampleData()"
81
93
  [myColumnSymbols]="symbols"
82
94
  ></ngx-deebodata>
83
95
  ```
@@ -98,8 +110,9 @@ handleCellEdit(event: CellEdit) {//executes on cell edit if editable isn't false
98
110
  /*CellEdit interface -> { value: any; row: any; column: string; idType: string; valueChanged: boolean; }
99
111
  row will either be the 0-based index of the edited cell's parent row in the initial data set
100
112
  or, if a primaryKey is passed or detected, it will be the value of that primaryKey for the edited
101
- row. Use idType (will be either "key" or "rowId") to know which one is emitting. Use valueChanged
102
- to know if an edit actually changed the value*/
113
+ row. Use idType (will be either "key" or "rowId") to know which one is emitting. column is
114
+ the column/attribute and value is the real value of the edit, which can be a string, number
115
+ or Date. Use valueChanged to know if an edit actually changed the value*/
103
116
  // console.log(event)
104
117
  }
105
118
  ```
@@ -108,7 +121,7 @@ handleCellEdit(event: CellEdit) {//executes on cell edit if editable isn't false
108
121
 
109
122
  ```
110
123
  <ngx-deebodata
111
- [data]="signalArrayOfObjects()"
124
+ [data]="sampleData()"
112
125
  (cellEdit)="handleCellEdit($event)"
113
126
  ></ngx-deebodata>
114
127
  ```
@@ -142,7 +155,7 @@ valueColors: ColumnValueColors[] = [
142
155
 
143
156
  ```
144
157
  <ngx-deebodata
145
- [data]="signalArrayOfObjects()"
158
+ [data]="sampleData()"
146
159
  [myColumnValueColors]="valueColors"
147
160
  ></ngx-deebodata>
148
161
  ```
@@ -176,7 +189,7 @@ columnStyles: ColumnStyles[] = [
176
189
 
177
190
  ```
178
191
  <ngx-deebodata
179
- [data]="signalArrayOfObjects()"
192
+ [data]="sampleData()"
180
193
  [myColumnStyles]="columnStyles"
181
194
  ></ngx-deebodata>
182
195
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ngx-deebodata",
3
- "version": "0.1.8",
3
+ "version": "0.2.0",
4
4
  "description": "Angular data grid and charts solution that solves big data analysis with virtual scroll, row grouping, column resizing, re-ordering, column hiding, cell editing, tab accessibility, sorting with priority, and advanced filtering.",
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^21.2.0",