Options
All
  • Public
  • Public/Protected
  • All
Menu

Options used in MessageBox

Hierarchy

  • ElMessageBoxOptions

Index

Properties

cancelButtonClass?: string

Custom class name of cancel button

cancelButtonText?: string

Text content of cancel button

center?: boolean

Whether to align the content in center

closeOnClickModal?: boolean

Whether MessageBox can be closed by clicking the mask

closeOnHashChange?: boolean

Whether to close MessageBox when hash changes

closeOnPressEscape?: boolean

Whether MessageBox can be closed by pressing the ESC

confirmButtonClass?: string

Custom class name of confirm button

confirmButtonText?: string

Text content of confirm button

customClass?: string

Custom class name for MessageBox

dangerouslyUseHTMLString?: boolean

Whether message is treated as HTML string

distinguishCancelAndClose?: boolean

Whether to distinguish canceling and closing

iconClass?: string

Custom icon's class

inputErrorMessage?: string

Error message when validation fails

inputPattern?: RegExp

Regexp for the input

inputPlaceholder?: string

Placeholder of input

inputType?: string

Input Type: text, textArea, password or number

inputValidator?: MessageBoxInputValidator

Validation function for the input. Should returns a boolean or string. If a string is returned, it will be assigned to inputErrorMessage

inputValue?: string

Initial value of input

lockScroll?: boolean

Whether to lock body scroll when MessageBox prompts

message?: string | <internal>.VNode

Content of the MessageBox

roundButton?: boolean

Whether to use round button

showCancelButton?: boolean

Whether to show a cancel button

showClose?: boolean

Whether to show a close button

showConfirmButton?: boolean

Whether to show a confirm button

showInput?: boolean

Whether to show an input

title?: string

Title of the MessageBox

Message type, used for icon display

Methods

  • Callback before MessageBox closes, and it will prevent MessageBox from closing

    Parameters

    Returns void

Generated using TypeDoc