Skip to content

itemTextField

Evgenii Koriakin edited this page Jul 21, 2016 · 6 revisions

Summary

The field of the data item that provides the text content of the list items. The component will filter the data based on this field.

Default value

Value: ''

Returns

Type: String

Examples

Sets itemTextField field:

HTML:

<eq-combo-box #fabricsComboBox
    [itemTextField]="'name'">
</eq-combo-box>

TypeScript:

export class AppComponent {
    @ViewChild('fabricsComboBox') fabricsComboBox: EqwadComboBox;
}

Gets itemTextField field:

HTML:

<eq-combo-box #fabricsComboBox
    [itemTextField]="'name'">
</eq-combo-box>

TypeScript:

export class AppComponent {
    @ViewChild('fabricsComboBox') fabricsComboBox: EqwadComboBox;

    constructor() {
        setTimeout(() => {
            let itemTextField = this.fabricsComboBox.itemTextField;
        }, 1000);
    }
}
Clone this wiki locally