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

IgxSelectItemComponent

new IgxSelectItemComponent(): IgxSelectItemComponent

Returns IgxSelectItemComponent

Inherited from: IgxDropDownItemComponent

Sets/gets the id of the item.

<igx-drop-down-item [id] = 'igx-drop-down-item-0'></igx-drop-down-item>
let itemId =  this.item.id;
id: string

Defined in projects/igniteui-angular/drop-down/src/drop-down/drop-down-item.base.ts:38

Inherited from: IgxDropDownItemComponent

Gets/sets the role attribute of the item. Default is 'option'.

<igx-drop-down-item [role]="customRole"></igx-drop-down-item>
role: string = 'option'

Defined in projects/igniteui-angular/drop-down/src/drop-down/drop-down-item.base.ts:223

Inherited from: IgxDropDownItemComponent

Gets/sets the value of the item if the item is databound

// usage in IgxDropDownItemComponent
// get
let mySelectedItemValue = this.dropdown.selectedItem.value;

// set
let mySelectedItem = this.dropdown.selectedItem;
mySelectedItem.value = { id: 123, name: 'Example Name' }

// usage in IgxComboItemComponent
// get
let myComboItemValue = this.combo.items[0].value;
value: any

Defined in projects/igniteui-angular/drop-down/src/drop-down/drop-down-item.base.ts:95

Inherited from: IgxDropDownItemComponent

ariaLabel: string

Defined in projects/igniteui-angular/drop-down/src/drop-down/drop-down-item.base.ts:42, projects/igniteui-angular/drop-down/src/drop-down/drop-down-item.base.ts:46

Inherited from: IgxDropDownItemComponent

disabled: boolean

Defined in projects/igniteui-angular/drop-down/src/drop-down/drop-down-item.base.ts:206, projects/igniteui-angular/drop-down/src/drop-down/drop-down-item.base.ts:210

Inherited from: IgxDropDownItemComponent

focused: boolean

Defined in projects/igniteui-angular/drop-down/src/drop-down/drop-down-item.component.ts:24, projects/igniteui-angular/drop-down/src/drop-down/drop-down-item.component.ts:41

Inherited from: IgxDropDownItemComponent

index: number

Defined in projects/igniteui-angular/drop-down/src/drop-down/drop-down-item.base.ts:66, projects/igniteui-angular/drop-down/src/drop-down/drop-down-item.base.ts:73

selected: any

Defined in projects/igniteui-angular/select/src/select/select-item.component.ts:55, projects/igniteui-angular/select/src/select/select-item.component.ts:59

text: string

Defined in projects/igniteui-angular/select/src/select/select-item.component.ts:30, projects/igniteui-angular/select/src/select/select-item.component.ts:34

Inherited from: IgxDropDownItemComponent

A callback method that performs change-detection, invoked after the default change-detector runs. See KeyValueDiffers and IterableDiffers for implementing custom change checking for collections.

ngDoCheck(): void

Defined in projects/igniteui-angular/drop-down/src/drop-down/drop-down-item.base.ts:284

Returns void