Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • IControlValueAccessor

Index

Properties

formControl

formControl: AbstractControl

Form Control instance itself

Methods

propagateChange

  • propagateChange(fn: any): void
  • Registers a callback function that should be called when the control's value changes in the UI.

    This is called by the forms API on initialization so it can update the form model when values propagate from the view (view -> model).

    If you are implementing registerOnChange in your own value accessor, you will typically want to save the given function so your class can call it at the appropriate time.

    Parameters

    • fn: any

    Returns void

propagateTouch

  • propagateTouch(fn: any): void
  • Registers a callback function that should be called when the control receives a blur event.

    This is called by the forms API on initialization so it can update the form model on blur.

    If you are implementing registerOnTouched in your own value accessor, you will typically want to save the given function so your class can call it when the control should be considered blurred (a.k.a. 'touched').

    Parameters

    • fn: any

    Returns void

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc