Skip to content

Commit cd55104

Browse files
committed
refactor(column,pivot): attr transform for all bool inputs
1 parent 66f8bd9 commit cd55104

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

projects/igniteui-angular/src/lib/grids/columns/column.component.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,12 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy
114114
* ```
115115
*
116116
*/
117-
@Input()
118-
public get merge() {
117+
@Input({ transform: booleanAttribute })
118+
public get merge(): boolean {
119119
return this._merge;
120120
}
121121

122-
public set merge(value) {
122+
public set merge(value: boolean) {
123123
if (this.grid.hasColumnLayouts) {
124124
console.warn('Merging is not supported with multi-row layouts.');
125125
return;
@@ -192,7 +192,7 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy
192192
* @memberof IgxColumnComponent
193193
*/
194194
@WatchColumnChanges()
195-
@Input()
195+
@Input({ transform: booleanAttribute })
196196
public get selectable(): boolean {
197197
return this._selectable;
198198
}

projects/igniteui-angular/src/lib/grids/pivot-grid/pivot-grid.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ export class IgxPivotGridComponent extends IgxGridBaseDirective implements OnIni
401401
* ```
402402
*/
403403
@HostBinding('class.igx-grid__pivot--super-compact')
404-
@Input()
404+
@Input({ transform: booleanAttribute })
405405
public get superCompactMode() {
406406
return this._superCompactMode;
407407
}

0 commit comments

Comments
 (0)