centurion-ui
    Preparing search index...

    Type Alias FieldsProps

    0.9.0

    type FieldsProps = {
        errorState: object;
        fields: string[];
        formComponent: typeof Form;
        formState: object;
        isCreate?: boolean;
        isEdit?: boolean;
        isFlex?: boolean;
        objectData: apiObject;
        objectMetadata: APIMetadata;
        onChange: Dispatch<SetStateAction<object>>;
        useDivider?: boolean;
    }
    Index
    errorState: object

    Form errors.

    fields: string[]

    Form fields to fetch.

    formComponent: typeof Form

    Form to to use if creating / editing.

    If required, this will normally come from a fetcher.

    formState: object

    Current form edit state.

    isCreate?: boolean

    Is the object being created.

    isEdit?: boolean

    It the object being edited.

    isFlex?: boolean

    Display form as flex.

    objectData: apiObject

    Object Data.

    objectMetadata: APIMetadata

    Object Metadata

    onChange: Dispatch<SetStateAction<object>>

    Callback when the form changes.

    useDivider?: boolean

    After each form field, add a divider.