Class IgxSelectGroupComponent

The <igx-select-item> is a container intended for row items in a <igx-select> container.

Hierarchy

Hierarchy (view full)

Constructors

Properties

Accessors

Constructors

Properties

disabled: boolean = false

Sets/gets if the item group is disabled

const myDropDownGroup: IgxDropDownGroupComponent = this.dropdownGroup;
// get
...
const groupState: boolean = myDropDownGroup.disabled;
...
//set
...
myDropDownGroup,disabled = false;
...
<igx-drop-down-item-group [label]="'My Items'" [disabled]="true">
<igx-drop-down-item *ngFor="let item of items[index]" [value]="item.value">
{{ item.text }}
</igx-drop-down-item>
</igx-drop-down-item-group>

NOTE: All items inside of a disabled drop down group will be treated as disabled

label: string

Sets/gets the label of the item group

const myDropDownGroup: IgxDropDownGroupComponent = this.dropdownGroup;
// get
...
const myLabel: string = myDropDownGroup.label;
...
// set
...
myDropDownGroup.label = 'My New Label';
...
<igx-drop-down-item-group [label]="'My new Label'">
...
</igx-drop-down-item-group>

Accessors