Options
All
  • Public
  • Public/Protected
  • All
Menu

Class FieldBase

Contains the base methods and properties that all fields should have.

export
class

FieldBase

Hierarchy

  • FieldBase

Index

Properties

focus$

focus$: Observable<boolean>

Observable that emits information if the field is being focused.

type

{Observable}

memberof

FieldBase

Methods

getValue

  • getValue(): any
  • Gets the current value of the field.

    memberof

    FieldBase

    Returns any

processErrors

  • processErrors(errors: object): Array<string>
  • Processes the errors that come from the validators. Users can return user friendly messages using this method

    Parameters

    • errors: object

      The errors object

      • [key: string]: any

    Returns Array<string>

writeValue

  • writeValue(value: any): void
  • Updates the value property. Useful if you want to plug additional functionaly before or after the value is updated.

    memberof

    FieldBase

    Parameters

    • value: any

    Returns void

Generated using TypeDoc