Options
All
  • Public
  • Public/Protected
  • All
Menu

Class FormInputDirective

FormInputDirective to handle input text FormControl value.

example
example

<input type="text" [formControl]="form.get('firstName')" />

Hierarchy

Indexable

[key: string]: any

FormInputDirective to handle input text FormControl value.

example
example

<input type="text" [formControl]="form.get('firstName')" />

Index

Constructors

constructor

Properties

changes$

changes$: ReplaySubject<Factory>

Optional formControl

formControl: FormAbstract

Optional formControlName

formControlName: undefined | string

Optional host

rxcompId

rxcompId: number

unsubscribe$

unsubscribe$: Subject<void>

Accessors

control

Methods

onBlur

  • onBlur(event: FocusEvent): void

onChange

  • onChange(event: Event): void

onChanges

  • onChanges(changes: Factory | Window): void

onDestroy

  • onDestroy(): void

onInit

  • onInit(): void

onParentDidChange

  • onParentDidChange(changes: Factory | Window): void

onView

  • onView(): void

pushChanges

  • pushChanges(): void

setDisabledState

  • setDisabledState(disabled: boolean): void

writeValue

  • writeValue(value: any): void

Static getInputsTokens

  • getInputsTokens(instance: Factory, node: IElement, module: Module): {}

Object literals

Static meta

meta: object

inputs

inputs: string[] = ['formControl', 'formControlName']

selector

selector: string = "input[type=text][formControl],input[type=text][formControlName],input[type=email][formControl],input[type=email][formControlName],input[type=password][formControl],input[type=password][formControlName],textarea[formControl],textarea[formControlName]"

hosts

hosts: object

host

host: FormAbstractCollectionDirective = FormAbstractCollectionDirective