AJSF API reference
    Preparing search index...

    Function buildFormGroupTemplate

    • 'buildFormGroupTemplate' function

      Builds a template for an Angular FormGroup from a JSON Schema.

      TODO: add support for pattern properties https://spacetelescope.github.io/understanding-json-schema/reference/object.html

      // {any} jsf - // {any = null} nodeValue - // {boolean = true} mapArrays - // {string = ''} schemaPointer - // {string = ''} dataPointer - // {any = ''} templatePointer - // {any} -

      Parameters

      • jsf: any
      • nodeValue: any = null
      • setValues: boolean = true
      • schemaPointer: string = ''
      • dataPointer: string = ''
      • templatePointer: string = ''

      Returns
          | {
              controls: any;
              controlType: string;
              validators: any;
              value?: undefined;
          }
          | {
              controls?: undefined;
              controlType: string;
              validators: any;
              value: { disabled: any; value: any };
          }