Expand all

OO.ui.WikimediaUITheme

Extends

Constructor

new OO.ui.WikimediaUITheme() #

Methods

getDialogTransitionDuration() → {number} #

Get the transition duration in milliseconds for dialogs opening/closing

The dialog should be fully rendered this many milliseconds after the ready process has executed.

Overrides:
Source:

Returns:

Transition duration in milliseconds

Type
number

Get the transition duration in milliseconds for dialogs opening/closing

The dialog should be fully rendered this many milliseconds after the ready process has executed.

getElementClasses(element) → {Object.<string, Array.<string>>} #

Get a list of classes to be applied to a widget.

The 'on' and 'off' lists combined MUST contain keys for all classes the theme adds or removes, otherwise state transitions will not work properly.

Parameters:

Name Type Description
element OO.ui.Element

Element for which to get classes

Overrides:
Source:

Returns:

Categorized class names with on and off lists

Type
Object.<string, Array.<string>>
Get a list of classes to be applied to a widget.

queueUpdateElementClasses(element) #

Queue #updateElementClasses to be called for this element.

QUnit tests override this method to directly call #queueUpdateElementClasses, to make them synchronous.

Parameters:

Name Type Description
element OO.ui.Element

Element for which to update classes

Inherited from:
Source:
Queue #updateElementClasses to be called for this element.

updateElementClasses(element) #

Update CSS classes provided by the theme.

For elements with theme logic hooks, this should be called any time there's a state change.

Parameters:

Name Type Description
element OO.ui.Element

Element for which to update classes

Inherited from:
Source:
Update CSS classes provided by the theme.