Skip to content
This repository was archived by the owner on Jun 1, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions docs/grid-functionalities/Grid-Menu.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,18 +142,18 @@ export class GridDemoComponent {

### Grid State Event
There are 2 ways of subscribing to GridState Service event changed.
1. Through `(onGridStateServiceChanged)` Event Emitter (recommended)
1. Through `(onGridStateChanged)` Event Emitter (recommended)
2. Through `onGridStateChanged` Observable on the GridState Service.

Examples
#### 1. `(onGridStateServiceChanged)` Event Emitter (recommended)
#### 1. `(onGridStateChanged)` Event Emitter (recommended)
##### View
```html
<angular-slickgrid gridId="grid1"
[columnDefinitions]="columnDefinitions"
[gridOptions]="gridOptions"
[dataset]="dataset"
(onGridStateServiceChanged)="gridStateChanged($event)">
(onGridStateChanged)="gridStateChanged($event)">
</angular-slickgrid>
```
##### Component
Expand Down Expand Up @@ -242,4 +242,4 @@ this.gridOptions = {
}
};
```
You could technically redefine by hand the complete list of `columns` that the `presets` requires. I would personally do it via the Column Definitions looping with `map()`, but go manual is also perfectly fine. You would just re-declare the `columns` again with the `id` and `width` and that would work as well.
You could technically redefine by hand the complete list of `columns` that the `presets` requires. I would personally do it via the Column Definitions looping with `map()`, but go manual is also perfectly fine. You would just re-declare the `columns` again with the `id` and `width` and that would work as well.
8 changes: 4 additions & 4 deletions docs/grid-functionalities/Grid-State-&-Preset.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,18 +145,18 @@ export class GridDemoComponent {

### Grid State Event
There are 2 ways of subscribing to GridState Service event changed.
1. Through `(onGridStateServiceChanged)` Event Emitter (recommended)
1. Through `(onGridStateChanged)` Event Emitter (recommended)
2. Through `onGridStateChanged` Observable on the GridState Service.

Examples
#### 1. `(onGridStateServiceChanged)` Event Emitter (recommended)
#### 1. `(onGridStateChanged)` Event Emitter (recommended)
##### View
```html
<angular-slickgrid gridId="grid1"
[columnDefinitions]="columnDefinitions"
[gridOptions]="gridOptions"
[dataset]="dataset"
(onGridStateServiceChanged)="gridStateChanged($event)">
(onGridStateChanged)="gridStateChanged($event)">
</angular-slickgrid>
```
##### Component
Expand Down Expand Up @@ -242,4 +242,4 @@ this.gridOptions = {
}
};
```
You could technically redefine by hand the complete list of `columns` that the `presets` requires. I would personally do it via the Column Definitions looping with `map()`, but go manual is also perfectly fine. You would just re-declare the `columns` again with the `id` and `width` and that would work as well.
You could technically redefine by hand the complete list of `columns` that the `presets` requires. I would personally do it via the Column Definitions looping with `map()`, but go manual is also perfectly fine. You would just re-declare the `columns` again with the `id` and `width` and that would work as well.
4 changes: 2 additions & 2 deletions docs/grid-functionalities/Row-Selection.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ handleOnSelectedRowsChanged(args) {
[columnDefinitions]="columnDefinitions"
[gridOptions]="gridOptions"
[dataset]="dataset"
(onGridStateServiceChanged)="handleOngridStateChanged($event.detail.args)">
(onGridStateChanged)="handleOngridStateChanged($event.detail.args)">
</angular-slickgrid>
```
```ts
Expand Down Expand Up @@ -244,4 +244,4 @@ addNewColumn() {
// you could also use SlickGrid setColumns() method
// this.angularGrid.slickGrid.setColumns(cols);
}
```
```