ngx-deebodata 0.0.1
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.
- package/LICENSE +1 -0
- package/README.md +140 -0
- package/fesm2022/ngx-deebodata.mjs +6863 -0
- package/fesm2022/ngx-deebodata.mjs.map +1 -0
- package/package.json +33 -0
- package/types/ngx-deebodata.d.ts +439 -0
package/LICENSE
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
By entering into this agreement with Cedar Technologies LLC, you agree that before deploying to any live url (anything not http://localhost:4200/), you will obtain 1 deployment license PER DEVELOPER, PER APPLICATION by visiting https://deebodata.com/data-grid-checkout/angular. You will receive 1 key that can be shared by each developer a license was obtained for. The data grid module will work without restriction during development on http://localhost:4200/. Unless you opt out, the licensor - Cedar Technologies LLC, is responsible for bug fixes and adequate support for 1 Yr. upon purchase.
|
package/README.md
ADDED
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
# NgxDeebodata
|
|
2
|
+
|
|
3
|
+
DeeboData for Angular - a commercial data grid with virtual scroll, integrated charts
|
|
4
|
+
column resizing, toggle column visibility, cell editing, tab accessibility, sorting with
|
|
5
|
+
priority, and advanced filtering.
|
|
6
|
+
|
|
7
|
+
# Licensing
|
|
8
|
+
|
|
9
|
+
Commercial license - However, you can install this module and test
|
|
10
|
+
the full functionality when developing locally at **http://localhost:4200/**
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
To deploy to any live url, you need to obtain a deployment license for each developer
|
|
14
|
+
on the project from https://deebodata.com/data-grid-checkout/angular
|
|
15
|
+
|
|
16
|
+
## Usage
|
|
17
|
+
|
|
18
|
+
**In the .ts component you want to use the data grid in**
|
|
19
|
+
|
|
20
|
+
```
|
|
21
|
+
import { NgxDeebodata } from 'ngx-deebodata';
|
|
22
|
+
|
|
23
|
+
@Component({
|
|
24
|
+
selector: 'app-your-component',
|
|
25
|
+
imports: [ NgxDeebodata ],
|
|
26
|
+
templateUrl: './your-component.html',
|
|
27
|
+
styleUrl: './your-component.css'
|
|
28
|
+
})
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
**In the template of the component**
|
|
32
|
+
|
|
33
|
+
```
|
|
34
|
+
<ngx-deebodata
|
|
35
|
+
[editable]="true"
|
|
36
|
+
[rowNumbers]="true"
|
|
37
|
+
[data]="signalArrayOfObjects()"
|
|
38
|
+
[color1]="'navy'"
|
|
39
|
+
[color2]="'lightblue'"
|
|
40
|
+
[primaryKey]="'employee_id'"
|
|
41
|
+
[defRowHgt]="'50px'"
|
|
42
|
+
[defGridHgt]="500"
|
|
43
|
+
[pieGraphColors]="['red', 'blue', 'lightgray', 'orange', 'green']"
|
|
44
|
+
[removePieCovers]="false"
|
|
45
|
+
[altRowColor]="'#ececec'"
|
|
46
|
+
[myColumnStyles]="[]"
|
|
47
|
+
></ngx-deebodata>
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
**It's best to pass hex colors to color1, color2, pieGraphColors, & altRowColor, but css colors work too**
|
|
51
|
+
|
|
52
|
+
**Always pass a px value to defRowHgt like '50px'**
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
**To pass Column Symbols (Numeric columns only)**
|
|
56
|
+
|
|
57
|
+
- In the .ts component you want to use the data grid in
|
|
58
|
+
|
|
59
|
+
```
|
|
60
|
+
import { ColumnSymbol, NgxDeebodata } from 'ngx-deebodata';
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
- in the exported class
|
|
64
|
+
|
|
65
|
+
```
|
|
66
|
+
symbols: ColumnSymbol[] = [{ column: "salary", symbol: "$" }];
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
- In the template of the component
|
|
70
|
+
|
|
71
|
+
```
|
|
72
|
+
<ngx-deebodata
|
|
73
|
+
[data]="signalArrayOfObjects()"
|
|
74
|
+
[myColumnSymbols]="symbols"
|
|
75
|
+
></ngx-deebodata>
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
**To Hook Cell Edits**
|
|
80
|
+
|
|
81
|
+
- In the .ts component you want to use the data grid in
|
|
82
|
+
|
|
83
|
+
```
|
|
84
|
+
import { CellEdit, NgxDeebodata } from 'ngx-deebodata';
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
- in the exported class
|
|
88
|
+
|
|
89
|
+
```
|
|
90
|
+
handleCellEdit(event: CellEdit) {//executes on cell edit if editable isn't false
|
|
91
|
+
/*CellEdit interface -> { value: any; row: any; column: string; }
|
|
92
|
+
row will either be the index of the edited cell in the initial data set
|
|
93
|
+
or, if a primaryKey is passed or detected, it will be the value of that
|
|
94
|
+
primaryKey for the edited row*/
|
|
95
|
+
// console.log(event)
|
|
96
|
+
}
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
- In the template of the component
|
|
100
|
+
|
|
101
|
+
```
|
|
102
|
+
<ngx-deebodata
|
|
103
|
+
[data]="signalArrayOfObjects()"
|
|
104
|
+
(cellEdit)="handleCellEdit($event)"
|
|
105
|
+
></ngx-deebodata>
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
**To pass Column Styles**
|
|
109
|
+
|
|
110
|
+
The only css values processed now are color, font_size, font_weight, and text_decoration.
|
|
111
|
+
|
|
112
|
+
- In the .ts component you want to use the data grid in
|
|
113
|
+
|
|
114
|
+
```
|
|
115
|
+
import { ColumnStyles, NgxDeebodata } from 'ngx-deebodata';
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
- in the exported class
|
|
119
|
+
|
|
120
|
+
```
|
|
121
|
+
columnStyles: ColumnStyles[] = [
|
|
122
|
+
{
|
|
123
|
+
column: "party",
|
|
124
|
+
css: [
|
|
125
|
+
{ value: "Republican", color: "red", font_size: "18px" },
|
|
126
|
+
{ value: "Democrat", color: "blue", font_size: "18px" },
|
|
127
|
+
{ value: "Independent", color: "green", font_size: "18px" },
|
|
128
|
+
]
|
|
129
|
+
},
|
|
130
|
+
]
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
- In the template of the component
|
|
134
|
+
|
|
135
|
+
```
|
|
136
|
+
<ngx-deebodata
|
|
137
|
+
[data]="signalArrayOfObjects()"
|
|
138
|
+
[myColumnStyles]="columnStyles"
|
|
139
|
+
></ngx-deebodata>
|
|
140
|
+
```
|