Axinom Mosaic Libraries
    Preparing search index...

    Type Alias ModalFormProps<TValues, TSubmitResponse>

    ModalFormProps: Omit<
        FormStationProps<TValues, TSubmitResponse>,

            | "cancelNavigationUrl"
            | "onCancel"
            | "onSaveCompleted"
            | "saveOnNavigate"
            | "defaultTitle"
            | "titleProperty"
            | "setTabTitle",
    > & { closeModal: () => void; title: string; width?: string }

    Type Parameters

    • TValues extends Data
    • TSubmitResponse = unknown

    Type Declaration

    • closeModal: () => void

      Closes the modal hosting the form. Pass the closeModal callback the useModal hook provides to the modal component.

    • title: string

      The title of the form, shown in the modal's header

    • Optionalwidth?: string

      The width of the form inside the modal (as CSS width). Defaults to the full width the modal leaves over.