Expand all

OO.ui.mixin

Namespace for OOUI mixins.

Mixins are named according to the type of object they are intended to be mixed in to. For example, OO.ui.mixin.GroupElement is intended to be mixed in to an instance of OO.ui.Element, and OO.ui.mixin.GroupWidget is intended to be mixed in to an instance of OO.ui.Widget.

Classes

AccessKeyedElement
AccessKeyedElement is mixed into other classes to provide an accesskey HTML attribute.
ButtonElement

ButtonElement is often mixed into other classes to generate a button, which is a clickable interface element that can be configured with access keys for keyboard interaction.

ClippableElement
Element that can be automatically clipped to visible boundaries.
DraggableElement

DraggableElement is a mixin class used to create elements that can be clicked and dragged by a mouse to a new position within a group.

DraggableGroupElement

DraggableGroupElement is a mixin class used to create a group element to contain draggable elements, which are items that can be clicked and dragged by a mouse.

FlaggedElement

The FlaggedElement class is an attribute mixin, meaning that it is used to add additional functionality to an element created by another class.

FloatableElement

Element that will stick adjacent to a specified container, even when it is inserted elsewhere in the document (for example, in an OO.ui.Window's $overlay).

GroupElement

Any OOUI widget that contains other widgets (such as buttons or options) mixes in GroupElement.

IconElement
IconElement is often mixed into other classes to generate an icon.
IndicatorElement
IndicatorElement is often mixed into other classes to generate an indicator.
LabelElement

LabelElement is often mixed into other classes to generate a label, which helps identify the function of an interface element.

LookupElement

LookupElement is a mixin that creates a menu of suggested values for a text input widget.

PendingElement

PendingElement is a mixin that is used to create elements that notify users that something is happening and that they should wait before proceeding.

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

RequestManager is a mixin that manages the lifecycle of a promise-backed request for a widget, such as the OO.ui.mixin.LookupElement.

RequiredElement
RequiredElement is mixed into other classes to provide a required attribute.
TabIndexedElement

The TabIndexedElement class is an attribute mixin used to add additional functionality to an element created by another class.

TitledElement
TitledElement is mixed into other classes to provide a title attribute.