From 81f1f72d50ed66b08970ef7e7df012e53e88ec09 Mon Sep 17 00:00:00 2001 From: Weronika Wolska Date: Mon, 8 Nov 2021 11:55:49 +0100 Subject: [PATCH] feat(cdk/table): accept 'center' in justify input in text-column Allow user to center text in cells created by text-column by passing 'center' to justify input. The change allows to same values which are accepted by text-align CSS property to which the value is passed --- src/cdk/table/text-column.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cdk/table/text-column.ts b/src/cdk/table/text-column.ts index 335091f71a0d..5770c5c4ed0a 100644 --- a/src/cdk/table/text-column.ts +++ b/src/cdk/table/text-column.ts @@ -85,7 +85,7 @@ export class CdkTextColumn implements OnDestroy, OnInit { @Input() dataAccessor: (data: T, name: string) => string; /** Alignment of the cell values. */ - @Input() justify: 'start' | 'end' = 'start'; + @Input() justify: 'start' | 'end' | 'center' = 'start'; /** @docs-private */ @ViewChild(CdkColumnDef, {static: true}) columnDef: CdkColumnDef;