Expand all

abstract OO.ui.mixin.PopupElement

Constructor

new OO.ui.mixin.PopupElement([config])abstract #

PopupElement is mixed into other classes to generate a popup widget. A popup is a container for content. It is overlaid and positioned absolutely. By default, each popup has an anchor, which is an arrow-like protrusion that points toward the popup’s origin. See PopupWidget for an example.

Parameters:

Name Type Attributes Description
config Object optional

Configuration options

Properties:
Name Type Attributes Description
popup Object optional

Configuration to pass to popup

Properties:
Name Type Attributes Default Description
autoClose boolean optional
true

Popup auto-closes when it loses focus

Source:
PopupElement is mixed into other classes to generate a popup widget.

Methods

getPopup() → {OO.ui.PopupWidget} #

Get popup.

Source:

Returns:

Popup widget

Type
OO.ui.PopupWidget
Get popup.