Interface JFormParams

interface JFormParams {
    buttonLabelCancel?: string;
    buttonLabelClear?: string;
    buttonLabelSubmit?: string;
    defaultValueById?: {
        [id: string]: any;
    };
    disableSubmit?: boolean;
    formIsDestroyedAfterSubmit?: boolean;
    hideClearButton?: boolean;
    id: JId;
    isSearch?: boolean;
    label: string;
    messageToDisplay?: string;
    onCancel?: (() => void);
    onReset?: (() => void);
    onSubmit: ((values, formMetada) => string | void | Promise<any>);
    readOnly?: boolean;
    schema: JFormSchema;
    smallScreenDisplay?: boolean;
    submitErrors?: string[];
    uiSchema: JFormUISchema;
    validate: ((values, formMetada) => {
        [key: string]: string;
    });
    validationRules?: JFormValidationRules;
    viewId?: number;
}

Properties

buttonLabelCancel?: string
buttonLabelClear?: string
buttonLabelSubmit?: string
defaultValueById?: {
    [id: string]: any;
}

Type declaration

  • [id: string]: any
disableSubmit?: boolean
formIsDestroyedAfterSubmit?: boolean
hideClearButton?: boolean
id: JId
isSearch?: boolean
label: string
messageToDisplay?: string
onCancel?: (() => void)

Type declaration

    • (): void
    • Returns void

onReset?: (() => void)

Type declaration

    • (): void
    • Returns void

onSubmit: ((values, formMetada) => string | void | Promise<any>)

Type declaration

    • (values, formMetada): string | void | Promise<any>
    • Parameters

      Returns string | void | Promise<any>

readOnly?: boolean
schema: JFormSchema
smallScreenDisplay?: boolean
submitErrors?: string[]
uiSchema: JFormUISchema
validate: ((values, formMetada) => {
    [key: string]: string;
})

Type declaration

    • (values, formMetada): {
          [key: string]: string;
      }
    • Parameters

      Returns {
          [key: string]: string;
      }

      • [key: string]: string
validationRules?: JFormValidationRules
viewId?: number