An abstract class, defining a drop-down component, with: Properties for display styles and classes A collection items of type IgxDropDownItemBaseDirective Properties and methods for navigating (highlighting/focusing) items from the collection Properties and methods for selecting items from the collection

IgxDropDownBaseDirective

new IgxDropDownBaseDirective(): IgxDropDownBaseDirective

Returns IgxDropDownBaseDirective

Gets if the dropdown is collapsed

collapsed: boolean

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

document: Document

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

Gets/Sets the height of the drop down

// get
let myDropDownCurrentHeight = this.dropdown.height;
<!--set-->
<igx-drop-down [height]='400px'></igx-drop-down>
height: string

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

Gets/Sets the drop down's container max height.

// get
let maxHeight = this.dropdown.maxHeight;
<!--set-->
<igx-drop-down [maxHeight]='200px'></igx-drop-down>
maxHeight: any = null

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

Emitted when item selection is changing, before the selection completes

<igx-drop-down (selectionChanging)='handleSelection()'></igx-drop-down>
selectionChanging: EventEmitter<ISelectionEventArgs>

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

Gets/Sets the width of the drop down

// get
let myDropDownCurrentWidth = this.dropdown.width;
<!--set-->
<igx-drop-down [width]='160px'></igx-drop-down>
width: string

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

id: string

Defined in projects/igniteui-angular/drop-down/src/drop-down/drop-down.base.ts:82, projects/igniteui-angular/drop-down/src/drop-down/drop-down.base.ts:85

Get dropdown html element

let myDropDownElement = this.dropdown.element;
get element(): any

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

Returns any

Get all header items

let myDropDownHeaderItems = this.dropdown.headers;
get headers(): IgxDropDownItemBaseDirective[]

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

Returns IgxDropDownItemBaseDirective[]

Get all non-header items

let myDropDownItems = this.dropdown.items;
get items(): IgxDropDownItemBaseDirective[]

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

Returns IgxDropDownItemBaseDirective[]

Navigates to the item on the specified index

navigateItem(newIndex: number): void

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

Parameters

  • newIndex: number

    number - the index of the item in the items collection

Returns void

A callback method that is invoked immediately after the default change detector has checked the directive's data-bound properties for the first time, and before any of the view or content children have been checked. It is invoked only once when the directive is instantiated.

ngOnInit(): void

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

Returns void

Keydown Handler

onItemActionKey(key: DropDownActionKey, event: Event): void

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

Parameters

Returns void