Skip to content

placeholder

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

Summary

The hint displayed by the component when the value is not selected.

Default value

Value: ''

Returns

Type: String

Examples

Sets placeholder field:

HTML:

<eq-combo-box #fabricsComboBox
    [placeholder]="'Select fabric...'">
</eq-combo-box>

TypeScript:

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

Gets placeholder field:

HTML:

<eq-combo-box #fabricsComboBox
    [placeholder]="'Select fabric...'">
</eq-combo-box>

TypeScript:

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

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