Class: Theme

(abstract) .ui.Theme()

(abstract) new Theme()

Theme logic.

Source:

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.

Source:
Returns:

Transition duration in milliseconds

Type
number

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

Source:
Returns:

Categorized class names with on and off lists

Type
Object.<string, Array.<string>>

queueUpdateElementClasses(element)

Queue #updateElementClasses to be called for this element.

Parameters:
Name Type Description
element OO.ui.Element

Element for which to update classes

Source:

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

Source: