interface ModalFuncProps {
    afterClose?: (() => void);
    autoFocusButton?: null | "cancel" | "ok";
    bodyStyle?: CSSProperties;
    cancelButtonProps?: Antd.ButtonProps;
    cancelText?: ReactNode;
    centered?: boolean;
    className?: string;
    closable?: boolean;
    closeIcon?: ReactNode;
    content?: ReactNode;
    direction?: DirectionType;
    focusTriggerAfterClose?: boolean;
    footer?: ReactNode | ModalFooterRender;
    getContainer?: string | false | HTMLElement | getContainerFunc;
    icon?: ReactNode;
    keyboard?: boolean;
    mask?: boolean;
    maskClosable?: boolean;
    maskStyle?: CSSProperties;
    maskTransitionName?: string;
    modalRender?: ((node) => ReactNode);
    okButtonProps?: Antd.ButtonProps;
    okCancel?: boolean;
    okText?: ReactNode;
    okType?: LegacyButtonType;
    onCancel?: ((...args) => any);
    onOk?: ((...args) => any);
    open?: boolean;
    prefixCls?: string;
    rootClassName?: string;
    style?: CSSProperties;
    styles?: Omit<ModalStyles, "wrapper">;
    title?: ReactNode;
    transitionName?: string;
    type?: "error" | "confirm" | "success" | "info" | "warning" | "warn";
    visible?: boolean;
    width?: string | number;
    wrapClassName?: string;
    zIndex?: number;
}

Hierarchy

  • ModalCommonProps
    • ModalFuncProps

Properties

afterClose?: (() => void)

Type declaration

    • (): void
    • Returns void

autoFocusButton?: null | "cancel" | "ok"
bodyStyle?: CSSProperties

Deprecated

Please use styles.body instead

cancelButtonProps?: Antd.ButtonProps
cancelText?: ReactNode
centered?: boolean
className?: string
closable?: boolean
closeIcon?: ReactNode
content?: ReactNode
direction?: DirectionType
focusTriggerAfterClose?: boolean
footer?: ReactNode | ModalFooterRender
getContainer?: string | false | HTMLElement | getContainerFunc
icon?: ReactNode
keyboard?: boolean
mask?: boolean
maskClosable?: boolean
maskStyle?: CSSProperties

Deprecated

Please use styles.mask instead

maskTransitionName?: string
modalRender?: ((node) => ReactNode)

Type declaration

    • (node): ReactNode
    • Parameters

      • node: ReactNode

      Returns ReactNode

okButtonProps?: Antd.ButtonProps
okCancel?: boolean
okText?: ReactNode
okType?: LegacyButtonType
onCancel?: ((...args) => any)

Type declaration

    • (...args): any
    • Parameters

      • Rest ...args: any[]

      Returns any

onOk?: ((...args) => any)

Type declaration

    • (...args): any
    • Parameters

      • Rest ...args: any[]

      Returns any

open?: boolean
prefixCls?: string
rootClassName?: string
style?: CSSProperties
styles?: Omit<ModalStyles, "wrapper">
title?: ReactNode
transitionName?: string
type?: "error" | "confirm" | "success" | "info" | "warning" | "warn"
visible?: boolean

Deprecated

Please use open instead.

width?: string | number
wrapClassName?: string
zIndex?: number

Generated using TypeDoc