Skip to content

refactor(cdk/table): remove deprecated APIs for version 10 #19310

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

Merged
merged 1 commit into from
May 13, 2020
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
26 changes: 0 additions & 26 deletions src/cdk/table/table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -544,32 +544,6 @@ export class CdkTable<T> implements AfterContentChecked, CollectionViewer, OnDes
this.updateStickyColumnStyles();
}

/**
* Sets the header row definition to be used. Overrides the header row definition gathered by
* using `ContentChild`, if one exists. Sets a flag that will re-render the header row after the
* table's content is checked.
* @docs-private
* @deprecated Use `addHeaderRowDef` and `removeHeaderRowDef` instead
* @breaking-change 8.0.0
*/
setHeaderRowDef(headerRowDef: CdkHeaderRowDef) {
this._customHeaderRowDefs = new Set([headerRowDef]);
this._headerRowDefChanged = true;
}

/**
* Sets the footer row definition to be used. Overrides the footer row definition gathered by
* using `ContentChild`, if one exists. Sets a flag that will re-render the footer row after the
* table's content is checked.
* @docs-private
* @deprecated Use `addFooterRowDef` and `removeFooterRowDef` instead
* @breaking-change 8.0.0
*/
setFooterRowDef(footerRowDef: CdkFooterRowDef) {
this._customFooterRowDefs = new Set([footerRowDef]);
this._footerRowDefChanged = true;
}

/** Adds a column definition that was not included as part of the content children. */
addColumnDef(columnDef: CdkColumnDef) {
this._customColumnDefs.add(columnDef);
Expand Down
2 changes: 0 additions & 2 deletions tools/public_api_guard/cdk/table.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,6 @@ export declare class CdkTable<T> implements AfterContentChecked, CollectionViewe
removeHeaderRowDef(headerRowDef: CdkHeaderRowDef): void;
removeRowDef(rowDef: CdkRowDef<T>): void;
renderRows(): void;
setFooterRowDef(footerRowDef: CdkFooterRowDef): void;
setHeaderRowDef(headerRowDef: CdkHeaderRowDef): void;
updateStickyColumnStyles(): void;
updateStickyFooterRowStyles(): void;
updateStickyHeaderRowStyles(): void;
Expand Down