7
7
*/
8
8
9
9
import { Direction , Directionality } from '@angular/cdk/bidi' ;
10
- import { BooleanInput , coerceBooleanProperty } from '@angular/cdk/coercion' ;
11
10
import {
12
11
CollectionViewer ,
13
12
DataSource ,
@@ -52,6 +51,7 @@ import {
52
51
ViewChild ,
53
52
ViewContainerRef ,
54
53
ViewEncapsulation ,
54
+ booleanAttribute ,
55
55
} from '@angular/core' ;
56
56
import {
57
57
BehaviorSubject ,
@@ -432,12 +432,12 @@ export class CdkTable<T> implements AfterContentChecked, CollectionViewer, OnDes
432
432
* dataobject will render the first row that evaluates its when predicate to true, in the order
433
433
* defined in the table, or otherwise the default row which does not have a when predicate.
434
434
*/
435
- @Input ( )
435
+ @Input ( { transform : booleanAttribute } )
436
436
get multiTemplateDataRows ( ) : boolean {
437
437
return this . _multiTemplateDataRows ;
438
438
}
439
- set multiTemplateDataRows ( v : BooleanInput ) {
440
- this . _multiTemplateDataRows = coerceBooleanProperty ( v ) ;
439
+ set multiTemplateDataRows ( value : boolean ) {
440
+ this . _multiTemplateDataRows = value ;
441
441
442
442
// In Ivy if this value is set via a static attribute (e.g. <table multiTemplateDataRows>),
443
443
// this setter will be invoked before the row outlet has been defined hence the null check.
@@ -452,12 +452,12 @@ export class CdkTable<T> implements AfterContentChecked, CollectionViewer, OnDes
452
452
* Whether to use a fixed table layout. Enabling this option will enforce consistent column widths
453
453
* and optimize rendering sticky styles for native tables. No-op for flex tables.
454
454
*/
455
- @Input ( )
455
+ @Input ( { transform : booleanAttribute } )
456
456
get fixedLayout ( ) : boolean {
457
457
return this . _fixedLayout ;
458
458
}
459
- set fixedLayout ( v : BooleanInput ) {
460
- this . _fixedLayout = coerceBooleanProperty ( v ) ;
459
+ set fixedLayout ( value : boolean ) {
460
+ this . _fixedLayout = value ;
461
461
462
462
// Toggling `fixedLayout` may change column widths. Sticky column styles should be recalculated.
463
463
this . _forceRecalculateCellWidths = true ;
0 commit comments