Skip to content

Commit ded1908

Browse files
committed
fix(grid): more typing, few code enhacement #5460
1 parent fc0d9c1 commit ded1908

File tree

6 files changed

+107
-137
lines changed

6 files changed

+107
-137
lines changed

Diff for: CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ All notable changes for each version of this project will be documented in this
1717

1818
- `IgxGrid`, `IgxTreeGrid`, `IgxHierarchicalGrid`
1919
- **Behavioral Change** - Pinning columns is no longer automatically prevented when the pinning area would exceed the size of the grid.
20+
- `igxGridState` directive added to make it easy for developers to save and restore the grid state. The directive exposes the `getState` and `setState` methods to save/restore the state and an `options` input property to exclude features.
2021
- `IgxCarousel`:
2122
- **Breaking Changes** -The carousel slides are no longer array, they are changed to QueryList.
2223
- **Behavioural change** - When slides are more than 5, a label is shown instead of the indicators. The count limit of visible indicators can be changed with the input `maximumIndicatorsCount`

Diff for: projects/igniteui-angular/src/lib/grids/grid/grid.component.ts

-6
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ export interface IGroupingDoneEventArgs extends IBaseEventArgs {
3636
ungroupedColumns: Array<IgxColumnComponent> | IgxColumnComponent;
3737
}
3838

39-
export const INTERFACE_TOKEN = new InjectionToken<GridType>('GridTypeToken');
40-
4139
/**
4240
* **Ignite UI for Angular Grid** -
4341
* [Documentation](https://www.infragistics.com/products/ignite-ui-angular/angular/components/grid.html)
@@ -68,10 +66,6 @@ export const INTERFACE_TOKEN = new InjectionToken<GridType>('GridTypeToken');
6866
IgxColumnResizingService,
6967
IgxForOfSyncService,
7068
IgxForOfScrollSyncService,
71-
{
72-
provide: INTERFACE_TOKEN,
73-
useExisting: forwardRef( () => IgxGridComponent)
74-
},
7569
IgxRowIslandAPIService
7670
],
7771
selector: 'igx-grid',

Diff for: projects/igniteui-angular/src/lib/grids/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ export * from './grid-common.module';
1010
export { IColumnVisibilityChangedEventArgs } from './hiding/column-hiding-item.directive';
1111
export * from './hiding/column-hiding.component';
1212
export * from './pinning/column-pinning.component';
13+
export * from './state.directive';

0 commit comments

Comments
 (0)