Popconfirm ​

A simple confirmation dialog of an element click action.

Placement ​

popconfirm has 9 placements.

Use attribute title to set the display content when click the reference element. The attribute placement determines the position of the popconfirm. Its value is [orientation]-[alignment] with four orientations top, left, right, bottom and three alignments start, end, null, and the default alignment is null. Take placement="left-end" for example, popconfirm will display on the left of the element which you are hovering and the bottom of the popconfirm aligns with the bottom of the element.

Basic usage ​

Popconfirm is similar to Popover. So for some duplicated attributes, please refer to the documentation of Popover.

Only title attribute is available in Popconfirm, content will be ignored.

Customize ​

You can customize Popconfirm like:

Trigger event ​

Click the button to trigger the event

API ​

Attributes ​

NameDescriptionTypeDefault
titleTitlestring—
effect 2.11.2Tooltip theme, built-in theme: dark / lightenum / stringlight
confirm-button-textConfirm button textstring—
cancel-button-textCancel button textstring—
confirm-button-typeConfirm button typeenumprimary
cancel-button-typeCancel button typeenumtext
iconIcon Componentstring / ComponentQuestionFilled
icon-colorIcon colorstring#f90
hide-iconis hide Iconbooleanfalse
hide-afterdelay of disappear, in millisecondnumber200
teleportedwhether popconfirm is teleported to the bodybooleantrue
persistentwhen popconfirm inactive and persistent is false , popconfirm will be destroyedbooleanfalse
widthpopconfirm width, min width 150pxstring / number150
tooltipInherits all attributes from Tooltip, except: popper-class, popper-style, fallback-placements——

Events ​

NameDescriptionType
confirmtriggers when click confirm buttonFunction
canceltriggers when click cancel buttonFunction

Slots ​

NameDescriptionType
referenceHTML element that triggers Popconfirm—
actions 2.8.1content of the Popconfirm footerobject

Exposes ​

NameDescriptionType
popperRef 2.10.7el-popper component instanceobject
hide 2.10.7hide popconfirmFunction

Source ​

Component • Style • Docs

Contributors ​