packages/components/eui-input-text/eui-input-text.component.ts
A custom input text component that extends InputDirective and provides additional functionality such as validation states, clearable input, and loading states.
<input euiInputText [(ngModel)]="username" placeholder="Enter username" /><input euiInputText [euiClearable]="true" [(ngModel)]="searchTerm" /><input euiInputText [euiLoading]="isSearching" [(ngModel)]="query" /><label> with for attributearia-invalid
| HostDirectives |
EuiClearableDirective
Inputs : euiClearable readonly disabled
EuiLoadingDirective
Inputs : euiLoading readonly
|
| host | { |
| selector | input[euiInputText] |
| styleUrls | ./eui-input-text.scss |
Methods |
Inputs |
Accessors |
constructor()
|
| disabled |
Type : boolean
|
| euiDanger |
Type : boolean
|
Default value : false
|
| euiDisabled |
Type : boolean
|
Default value : false
|
| placeholder |
Type : string | null
|
| readonly |
Type : any
|
| getCssClasses | ||||||
getCssClasses(rootClass: string)
|
||||||
|
Parameters :
Returns :
string
|
| class |
getclass()
|
|
Gets the CSS classes for the component, including validation state classes
Returns :
string
|