Skip to content

Commit

Permalink
feat(cdk/table): add optional footer to cdk-text-column/mat-text-column
Browse files Browse the repository at this point in the history
Added two new inputs to CdkTextColumn:
`footerText` (string) and `footerTextTransform` (function), automatically
inherited by MatTextColumn.

If the table does not define a footer, the column footer will be ignored.

Additionally, TextColumnOptions includes a new default function called
`defaultFooterTextTransform`, used when neither `footerTextTransform` nor
`footerText` are provided.

Fixes #24532
  • Loading branch information
jullierme committed Jul 9, 2024
1 parent 5c18659 commit b273831
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tools/public_api_guard/cdk/table.md
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,7 @@ export class CdkTextColumn<T> implements OnDestroy, OnInit {
dataAccessor: (data: T, name: string) => string;
headerCell: CdkHeaderCellDef;
headerText: string;
footerText: string;
footerTextTransform: (name: string) => string;
justify: 'start' | 'end' | 'center';
get name(): string;
Expand Down

0 comments on commit b273831

Please sign in to comment.