Represents a control that provides a menu of options.

Slots
default — Renders the list of select items.
prefix — Renders content before the input.
suffix — Renders content after input.
header — Renders a container before the list of options.
footer — Renders a container after the list of options.
helper-text — Renders content below the input.
toggle-icon — Renders content inside the suffix container.
toggle-icon-expanded — Renders content for the toggle icon when the component is in open state.
value-missing — Renders content when the required validation fails.
custom-error — Renders content when setCustomValidity(message) is set.
invalid — Renders content when the component is in invalid state (validity.valid = false).
CSS Parts
list — The list wrapping container for the items of the igc-select.
input — The encapsulated igc-input of the igc-select.
label — The encapsulated text label of the igc-select.
prefix — The prefix wrapper of the input of the igc-select.
suffix — The suffix wrapper of the input of the igc-select.
toggle-icon — The toggle icon wrapper of the igc-select.
helper-text — The helper text wrapper of the igc-select.

The autofocus attribute of the control.

autofocus: boolean

The distance of the select dropdown from its input.

distance: number

The label attribute of the control.

label: string

The outlined attribute of the control.

outlined: boolean

The placeholder attribute of the control.

placeholder: string

The preferred placement of the select dropdown around its input.

placement: PopoverPlacement

Determines the behavior of the component during scrolling of the parent container.

scrollStrategy: PopoverScrollStrategy

The value attribute of the control.

value: string

Returns the groups of the igc-select component.

get groups(): IgrSelectGroupComponent[]

Returns IgrSelectGroupComponent[]

Returns the items of the igc-select component.

get items(): IgrSelectItemComponent[]

Returns IgrSelectItemComponent[]

Returns the selected item from the dropdown or null.

get selectedItem(): IgrSelectItemComponent

Returns IgrSelectItemComponent

Removes focus from the component.

blur(): void

Returns void

Resets the current value and selection of the component.

clearSelection(): void

Returns void

Sets focus on the component.

focus(options: FocusOptions): void

Parameters

  • options: FocusOptions

Returns void

Navigates to the item with the specified value. If it exists, returns the found item, otherwise - null.

navigateTo(value: string): IgrSelectItemComponent

Parameters

  • value: string

Returns IgrSelectItemComponent

Checks the validity of the control and moves the focus to it if it is not valid.

reportValidity(): boolean

Returns boolean

Selects the item with the specified value. If it exists, returns the found item, otherwise - null.

select(value: string): IgrSelectItemComponent

Parameters

  • value: string

Returns IgrSelectItemComponent

Emitted when the control's checked state changes.

onChange(args: CustomEvent<IgrSelectItemComponent>): void

Parameters

Returns void

Emitted after the list of options is closed.

onClosed(args: CustomEvent<void>): void

Parameters

Returns void

Emitter just before the list of options is closed.

onClosing(args: CustomEvent<void>): void

Parameters

Returns void

Emitted after the list of options is opened.

onOpened(args: CustomEvent<void>): void

Parameters

Returns void

Emitted just before the list of options is opened.

onOpening(args: CustomEvent<void>): void

Parameters

Returns void