Skip to content

itemValueField

Evgenii Koriakin edited this page Jul 8, 2016 · 3 revisions

Summary

The field of the data item that provides the value of the component.

Default value

Value: ''

Returns

Type: String

Examples

Sets itemValueField field:

HTML:

<eq-combo-box #fabricsComboBox
    [itemValueField]="'id'">
</eq-combo-box>

TypeScript:

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

Gets itemValueField field:

HTML:

<eq-combo-box #fabricsComboBox
    [itemValueField]="'id'">
</eq-combo-box>

TypeScript:

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

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