Skip to content

Commit 6099925

Browse files
authored
Merge branch 'master' into nalipiev/schematics-main
2 parents 633a439 + 2b04db2 commit 6099925

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

projects/igniteui-angular/src/lib/buttonGroup/buttonGroup.component.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,27 @@ export class IgxButtonGroupComponent extends DisplayDensityBase implements After
118118
return this._itemContentCssClass;
119119
}
120120

121+
/**
122+
* @deprecated in version 16.1.0. Set/Use selectionMode property instead.
123+
*
124+
* Enables selecting multiple buttons. By default, multi-selection is false.
125+
*/
126+
@Input()
127+
public get multiSelection() {
128+
if (this.selectionMode === 'multi') {
129+
return true;
130+
} else {
131+
return false;
132+
}
133+
}
134+
public set multiSelection(selectionMode: boolean) {
135+
if (selectionMode) {
136+
this.selectionMode = 'multi';
137+
} else {
138+
this.selectionMode = 'single';
139+
}
140+
}
141+
121142
/**
122143
* An @Input property that sets the selection mode of the buttons. By default, the selection mode is single.
123144
* ```html

0 commit comments

Comments
 (0)