AJSF API reference
    Preparing search index...

    Function getControl

    • 'getControl' function

      Uses a JSON Pointer for a data object to retrieve a control from an Angular formGroup or formGroup template. (Note: though a formGroup template is much simpler, its basic structure is idential to a formGroup).

      If the optional third parameter 'returnGroup' is set to TRUE, the group containing the control is returned, rather than the control itself.

      // {FormGroup} formGroup - Angular FormGroup to get value from // {Pointer} dataPointer - JSON Pointer (string or array) // {boolean = false} returnGroup - If true, return group containing control // {group} - Located value (or null, if no control found)

      Parameters

      • formGroup: any
      • dataPointer: Pointer
      • returnGroup: boolean = false

      Returns any