angular-slickgrid 8.10.2 → 8.12.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.
- package/README.md +56 -1
- package/esm2022/app/modules/angular-slickgrid/components/angular-slickgrid.component.mjs +129 -64
- package/esm2022/app/modules/angular-slickgrid/constants.mjs +1 -1
- package/esm2022/app/modules/angular-slickgrid/extensions/slickRowDetailView.mjs +5 -5
- package/esm2022/app/modules/angular-slickgrid/global-grid-options.mjs +11 -11
- package/esm2022/app/modules/angular-slickgrid/models/angularGridInstance.interface.mjs +1 -1
- package/esm2022/app/modules/angular-slickgrid/models/externalTestingDependencies.interface.mjs +1 -1
- package/esm2022/app/modules/angular-slickgrid/models/index.mjs +1 -1
- package/esm2022/app/modules/angular-slickgrid/modules/angular-slickgrid.module.mjs +7 -16
- package/esm2022/app/modules/angular-slickgrid/services/angularUtil.service.mjs +1 -1
- package/esm2022/app/modules/angular-slickgrid/services/container.service.mjs +3 -3
- package/esm2022/app/modules/angular-slickgrid/services/translater.service.mjs +1 -1
- package/esm2022/app/modules/angular-slickgrid/services/utilities.mjs +1 -1
- package/fesm2022/angular-slickgrid.mjs +148 -92
- package/fesm2022/angular-slickgrid.mjs.map +1 -1
- package/package.json +10 -10
package/README.md
CHANGED
|
@@ -33,10 +33,41 @@ A good starting point is the **[Docs - Quick Start](https://ghiscoding.gitbook.i
|
|
|
33
33
|
npm install angular-slickgrid
|
|
34
34
|
```
|
|
35
35
|
|
|
36
|
+
#### Basic Grid
|
|
37
|
+
|
|
38
|
+
```ts
|
|
39
|
+
import { type Column, type GridOption } from 'angular-slickgrid';
|
|
40
|
+
|
|
41
|
+
export class GridComponent implements OnInit {
|
|
42
|
+
columnDefinitions: Column[] = [];
|
|
43
|
+
gridOptions!: GridOption;
|
|
44
|
+
dataset!: any[];
|
|
45
|
+
|
|
46
|
+
onInit() {
|
|
47
|
+
this.columnDefinitions = [
|
|
48
|
+
{ id: 'username', name: 'Username', field: 'username'},
|
|
49
|
+
{ id: 'age', name: 'Age', field: 'age' }
|
|
50
|
+
];
|
|
51
|
+
this.gridOptions = { /*...*/ };
|
|
52
|
+
this.dataset = [
|
|
53
|
+
{ id: 1, username: 'John', age: 20 },
|
|
54
|
+
{ id: 2, username: 'Jane', age: 21 }
|
|
55
|
+
];
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
```html
|
|
61
|
+
<angular-slickgrid gridId="grid2"
|
|
62
|
+
[columnDefinitions]="columnDefinitions"
|
|
63
|
+
[gridOptions]="gridOptions"
|
|
64
|
+
[dataset]="dataset">
|
|
65
|
+
</angular-slickgrid>
|
|
66
|
+
```
|
|
36
67
|
### Troubleshooting
|
|
37
68
|
|
|
38
69
|
> [!WARNING]
|
|
39
|
-
> This project **does not** work well with `strictTemplates` because of its use of native Custom Event, so please make sure to either `strictTemplates` or cast your event as `any` (see this [discussion](https://github.com/ghiscoding/Angular-Slickgrid/discussions/815) for more info)
|
|
70
|
+
> This project **does not** work well with `strictTemplates` because of its use of native Custom Event, so please make sure to either disable `strictTemplates` or cast your event as `any` (see this [discussion](https://github.com/ghiscoding/Angular-Slickgrid/discussions/815) for more info)
|
|
40
71
|
|
|
41
72
|
### Styling Themes
|
|
42
73
|
|
|
@@ -114,3 +145,27 @@ Slickgrid-Universal has **100%** Unit Test Coverage and all Angular-Slickgrid Ex
|
|
|
114
145
|
- [Angular 12 with WebPack 5 - how to fix polyfill error](https://github.com/ghiscoding/Angular-Slickgrid/wiki/Versions-Compatibility-Table#angular-12-with-webpack-5---how-to-fix-polyfill-error)
|
|
115
146
|
- [`ngcc` Build Warnings (Angular >=8.0 && <16.0)](https://github.com/ghiscoding/Angular-Slickgrid/wiki/Versions-Compatibility-Table#ngcc-build-warnings-angular-80--160)
|
|
116
147
|
- [`strictTemplates` error](https://github.com/ghiscoding/Angular-Slickgrid/wiki/Versions-Compatibility-Table#stricttemplates-error)
|
|
148
|
+
|
|
149
|
+
## Sponsors
|
|
150
|
+
|
|
151
|
+
<div>
|
|
152
|
+
<span>
|
|
153
|
+
<a href="https://github.com/wundergraph" class="Link" title="Wundergraph" target="_blank"><img src="https://avatars.githubusercontent.com/u/64281914" width="50" height="50" valign="middle" /></a>
|
|
154
|
+
</span>
|
|
155
|
+
|
|
156
|
+
<span>
|
|
157
|
+
<a href="https://github.com/johnsoncodehk" class="Link" title="johnsoncodehk (Volar)" target="_blank"><img src="https://avatars.githubusercontent.com/u/16279759" width="50" height="50" valign="middle" /></a>
|
|
158
|
+
</span>
|
|
159
|
+
|
|
160
|
+
<span>
|
|
161
|
+
<a href="https://github.com/kevinburkett" class="Link" title="kevinburkett" target="_blank"><img class="circle avatar-user" src="https://avatars.githubusercontent.com/u/48218815?s=52&v=4" width="45" height="45" valign="middle" /></a>
|
|
162
|
+
</span>
|
|
163
|
+
|
|
164
|
+
<span>
|
|
165
|
+
<a href="https://github.com/anton-gustafsson" class="Link" title="anton-gustafsson" target="_blank"><img src="https://avatars.githubusercontent.com/u/22906905?s=52&v=4" width="50" height="50" valign="middle" /></a>
|
|
166
|
+
</span>
|
|
167
|
+
|
|
168
|
+
<span>
|
|
169
|
+
<a href="https://github.com/gibson552" class="Link" title="gibson552" target="_blank"><img src="https://avatars.githubusercontent.com/u/84058359?s=52&v=4" width="50" height="50" valign="middle" /></a>
|
|
170
|
+
</span>
|
|
171
|
+
</div>
|