projects/ui-kit-lib/src/lib/v2/form-field/form-field.ts
| changeDetection | ChangeDetectionStrategy.Eager |
| encapsulation | ViewEncapsulation.None |
| host | { |
| providers |
)
|
| selector | md-form-field |
| standalone | true |
| templateUrl | ./form-field.html |
| styleUrl | ./form-field.scss |
Properties |
Methods |
Inputs |
Accessors |
| 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'
|
| focusControl |
focusControl()
|
|
Returns :
void
|
| onFocusOut | ||||||
onFocusOut(event: FocusEvent)
|
||||||
|
Parameters :
Returns :
void
|
| refresh |
refresh()
|
|
Returns :
void
|
| 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`
|
| invalid |
getinvalid()
|
| floated |
getfloated()
|
| describedBy |
getdescribedBy()
|