Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(grid, pivot): add deprecation proxy for shouldGenerate to autoGenerate #14797

Merged
merged 5 commits into from
Sep 27, 2024
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
10 changes: 8 additions & 2 deletions projects/igniteui-angular/src/lib/grids/grid-base.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2197,9 +2197,15 @@ export abstract class IgxGridBaseDirective implements GridType,
* ```typescript
* this.grid.shouldGenerate = true;
* ```
* @deprecated in version 18.2.0. Use the `autoGenerate` property instead.
* @deprecated in version 18.2.0. Column re-creation now relies on `autoGenerate` instead.
*/
public shouldGenerate: boolean;
public get shouldGenerate(): boolean {
return this.autoGenerate;
}

public set shouldGenerate(value: boolean) {
this.autoGenerate = value;
}

/**
* Gets/Sets the message displayed when there are no records and the grid is filtered.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -745,9 +745,14 @@ export class IgxPivotGridComponent extends IgxGridBaseDirective implements OnIni

/**
* @hidden @internal
* @deprecated in version 18.2.0. Use the `autoGenerate` property instead.
* @deprecated in version 18.2.0. This property is no longer supported.
*/
public override shouldGenerate: boolean;
public override get shouldGenerate(): boolean {
return false;
}

public override set shouldGenerate(value: boolean) {
}

/**
* @hidden @internal
Expand Down
Loading