77 */
88
99import { Direction , Directionality } from '@angular/cdk/bidi' ;
10- import { BooleanInput , coerceBooleanProperty } from '@angular/cdk/coercion' ;
1110import {
1211 CollectionViewer ,
1312 DataSource ,
@@ -52,6 +51,7 @@ import {
5251 ViewChild ,
5352 ViewContainerRef ,
5453 ViewEncapsulation ,
54+ booleanAttribute ,
5555} from '@angular/core' ;
5656import {
5757 BehaviorSubject ,
@@ -432,12 +432,12 @@ export class CdkTable<T> implements AfterContentChecked, CollectionViewer, OnDes
432432 * dataobject will render the first row that evaluates its when predicate to true, in the order
433433 * defined in the table, or otherwise the default row which does not have a when predicate.
434434 */
435- @Input ( )
435+ @Input ( { transform : booleanAttribute } )
436436 get multiTemplateDataRows ( ) : boolean {
437437 return this . _multiTemplateDataRows ;
438438 }
439- set multiTemplateDataRows ( v : BooleanInput ) {
440- this . _multiTemplateDataRows = coerceBooleanProperty ( v ) ;
439+ set multiTemplateDataRows ( value : boolean ) {
440+ this . _multiTemplateDataRows = value ;
441441
442442 // In Ivy if this value is set via a static attribute (e.g. <table multiTemplateDataRows>),
443443 // 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
452452 * Whether to use a fixed table layout. Enabling this option will enforce consistent column widths
453453 * and optimize rendering sticky styles for native tables. No-op for flex tables.
454454 */
455- @Input ( )
455+ @Input ( { transform : booleanAttribute } )
456456 get fixedLayout ( ) : boolean {
457457 return this . _fixedLayout ;
458458 }
459- set fixedLayout ( v : BooleanInput ) {
460- this . _fixedLayout = coerceBooleanProperty ( v ) ;
459+ set fixedLayout ( value : boolean ) {
460+ this . _fixedLayout = value ;
461461
462462 // Toggling `fixedLayout` may change column widths. Sticky column styles should be recalculated.
463463 this . _forceRecalculateCellWidths = true ;
0 commit comments