File

src/ng-xform/fields/nested-form-group.ts

Extends

DynamicField

Index

Properties

Constructor

constructor(options: NestedFormGroup)
Parameters :
Name Type Optional Description
options NestedFormGroup<T>

Properties

Public controlType
controlType:
Default value : 'GROUP'
Public fields
fields: DynamicField[]
Type : DynamicField[]
Public key
key:
Public label
label: string
Type : string
import { DynamicField } from './dynamic-field';

export class NestedFormGroup<T = any> extends DynamicField<T> {
    public controlType ? = 'GROUP';
    public key: keyof T;
    public label?: string;
    public fields: DynamicField[];

    constructor(
        options: NestedFormGroup<T>
    ) {
        super(options);
        this.key = options.key;
        this.label = options.label || '';
        this.fields = options.fields;
    }
}

results matching ""

    No results matching ""