File

packages/eui/packages/components/eui-input-text/eui-input-text.component.ts

Description

A custom input text component that extends InputDirective and provides additional functionality such as validation states, clearable input, and loading states.

Extends

InputDirective

Implements

OnInit OnDestroy DoCheck

Metadata

Index

Methods
Inputs
HostBindings
Accessors

Inputs

isInvalid
Type : boolean
disabled
Type : boolean
euiDanger
Type : boolean
Default value : false
euiDisabled
Type : boolean
Default value : false
placeholder
Type : string | null
readonly
Type : any

HostBindings

class
Type : string

Methods

getCssClasses
getCssClasses(rootClass: string)
Parameters :
Name Type Optional
rootClass string No
Returns : string

Accessors

class
getclass()

Gets the CSS classes for the component, including validation state classes

Returns : string
isInvalid
getisInvalid()

Gets or sets the invalid state of the input When used with NgControl, this state is automatically managed based on control state

Returns : boolean
setisInvalid(state: BooleanInput)
Parameters :
Name Type Optional Description
state BooleanInput No
  • The invalid state to set
Returns : void

results matching ""

    No results matching ""