angular-slickgrid 8.11.0 → 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 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