Emitted after the dropdown is closed
<igx-select (closed)='handleClosed($event)'></igx-select>
Emitted before the dropdown is closed
<igx-select (closing)='handleClosing($event)'></igx-select>
Disables the component.
<igx-select [disabled]="'true'"></igx-select>
The custom template, if any, that should be used when rendering the FOOTER for the select items list
// Set in typescript
const myCustomTemplate: TemplateRef<any> = myComponent.customTemplate;
myComponent.select.footerTemplate = myCustomTemplate;
<!-- Set in markup -->
<igx-select #select>
...
<ng-template igxSelectFooter>
<div class="select__footer">
This is a custom footer
</div>
</ng-template>
</igx-select>
The custom template, if any, that should be used when rendering the HEADER for the select items list
// Set in typescript
const myCustomTemplate: TemplateRef<any> = myComponent.customTemplate;
myComponent.select.headerTemplate = myCustomTemplate;
<!-- Set in markup -->
<igx-select #select>
...
<ng-template igxSelectHeader>
<div class="select__header">
This is a custom header
</div>
</ng-template>
</igx-select>
Sets aria-labelledby attribute value.
<igx-drop-down [labelledby]="labelId"></igx-drop-down>
Emitted after the dropdown is opened
<igx-select (opened)='handleOpened($event)'></igx-select>
Emitted before the dropdown is opened
<igx-select opening='handleOpening($event)'></igx-select>
Sets custom OverlaySettings IgxSelectComponent
.
<igx-select [overlaySettings] = "customOverlaySettings"></igx-select>
Sets input placeholder.
Emitted when item selection is changing, before the selection completes
<igx-drop-down (selectionChanging)='handleSelection()'></igx-drop-down>
The custom template, if any, that should be used when rendering the select TOGGLE(open/close) button
// Set in typescript
const myCustomTemplate: TemplateRef<any> = myComponent.customTemplate;
myComponent.select.toggleIconTemplate = myCustomTemplate;
<!-- Set in markup -->
<igx-select #select>
...
<ng-template igxSelectToggleIcon let-collapsed>
<igx-icon>{{ collapsed ? 'remove_circle' : 'remove_circle_outline'}}</igx-icon>
</ng-template>
</igx-select>
Gets if the dropdown is collapsed
let isCollapsed = this.dropdown.collapsed;
Get dropdown html element
let myDropDownElement = this.dropdown.element;
Get all header items
let myDropDownHeaderItems = this.dropdown.headers;
Gets/Sets the drop down's id
// get
let myDropDownCurrentId = this.dropdown.id;
<!--set-->
<igx-drop-down [id]='newDropDownId'></igx-drop-down>
Gets/Sets the drop down's id
// get
let myDropDownCurrentId = this.dropdown.id;
<!--set-->
<igx-drop-down [id]='newDropDownId'></igx-drop-down>
Get all non-header items
let myDropDownItems = this.dropdown.items;
Id of the internal listbox of the drop down
Sets how the select will be styled.
The allowed values are line
, box
and border
. The input-group default is line
.
<igx-select [type]="'box'"></igx-select>
Gets/Sets the component value.
// get
let selectValue = this.select.value;
// set
this.select.value = 'London';
<igx-select [value]="value"></igx-select>
Opens the select
this.select.open();
Toggles the dropdown
this.dropdown.toggle();
Ignite UI for Angular Select - Documentation
The
igxSelect
provides an input with dropdown list allowing selection of a single item.Example: