File

projects/ui-kit-lib/src/lib/v2/form-field/form-field.ts

Implements

MDFormFieldHost

Metadata

Index

Properties
Methods
Inputs
Accessors

Inputs

appearance
Type : "outlined" | "filled"
Default value : 'outlined'
error
Type : string
Default value : 'Invalid value'
hideRequiredMarker
Type : boolean
Default value : false
hint
Type : string
Default value : ''
invalidState
Type : boolean
Default value : false

Explicitly show an error (e.g. a server-side validation failure).

label
Type : string
Default value : ''
labelPosition
Type : "top" | "floating" | "inside" | "left"
Default value : 'top'

Methods

focusControl
focusControl()
Returns : void
onFocusOut
onFocusOut(event: FocusEvent)
Parameters :
Name Type Optional
event FocusEvent No
Returns : void
refresh
refresh()
Returns : void

Properties

Optional control
Type : MDInput
Decorators :
@ContentChild(MDInput, {descendants: true})
Readonly errorId
Type : unknown
Default value : `${this.labelId}-error`
focused
Type : unknown
Default value : false
Readonly hintId
Type : unknown
Default value : `${this.labelId}-hint`
Readonly labelId
Type : unknown
Default value : `md-form-field-${nextFieldId++}-label`

Accessors

invalid
getinvalid()
floated
getfloated()
describedBy
getdescribedBy()

results matching ""

    No results matching ""