OOjsUI
Object-Oriented JavaScript – User Interface
|
Public Member Functions | |
getElementClasses (Element $element) | |
Get a list of classes to be applied to a widget. More... | |
updateElementClasses (Element $element) | |
Update CSS classes provided by the theme. More... | |
Static Public Member Functions | |
static | setSingleton (Theme $theme=null) |
static | singleton () |
Theme logic.
OOUI\Theme::getElementClasses | ( | Element | $element | ) |
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.
on
and off
lists OOUI\Theme::updateElementClasses | ( | Element | $element | ) |