Input

Inputs that accept typed input from users

Contents

Hint only

The hint appears below the field while it is focused and is hidden on blur.

Hint with validation

Focus the field to see the hint, then blur with fewer than 5 characters — the error replaces the hint.

Inputs in Hint
dynamicValidation ?: boolean = false

First validation happens only on blur, and validates on keyup once an error exists

hint ?: string

Displays hint under input field upon focus

Also set in this example
control : FormControl<T>
placeholder ?: string
Outputs
iconEndClick ?: any = new EventEmitter<MouseEvent>()
iconStartClick ?: any = new EventEmitter<MouseEvent>()
onBlur ?: any = new EventEmitter<void>()
onFocus ?: any = new EventEmitter<void>()