Interface ReactiveFromInit<T>

Initial data for reactive form base class to feed to constructor.

interface ReactiveFromInit<T extends ReactiveFormData> {
    crud?: Crud<any, any>;
    data?: T;
    error?: ApiError;
    form: FormGroup;
    getPayload?: () => Payload<T>;
    id?: PK;
    loading?: boolean;
    noIdExtractControls?: string[];
    payloadPipes?: PayloadPipe[];
    updateDataOnSubmit?: boolean;
    updateIdOnCreateSubmit?: boolean;
    useDirtyAsPayload?: boolean;
    viewMode?: boolean;
}

Type Parameters

Properties

crud?: Crud<any, any>
data?: T
error?: ApiError
form: FormGroup
getPayload?: () => Payload<T>
id?: PK
loading?: boolean
noIdExtractControls?: string[]
payloadPipes?: PayloadPipe[]
updateDataOnSubmit?: boolean
updateIdOnCreateSubmit?: boolean
useDirtyAsPayload?: boolean
viewMode?: boolean