OOjsUI
Object-Oriented JavaScript – User Interface
|
Element containing an icon. More...
Public Member Functions | |
__construct (Element $element, array $config=array()) | |
setIcon ($icon=null) | |
Set icon name. More... | |
getIcon () | |
Get icon name. More... | |
getConfig (&$config) | |
![]() | |
__construct (Element $element, Tag $target, array $config=array()) | |
Create element. More... | |
getConfig (&$config) | |
Add properties to the given $config array to allow reconstruction of this widget via its constructor. More... | |
Static Public Attributes | |
static | $targetPropertyName = 'icon' |
![]() | |
static string | $targetPropertyName = '' |
Property name for accessing the target on the element. | |
Protected Attributes | |
string | $icon = null |
Symbolic icon name. | |
![]() | |
Element | $element = null |
Element being mixed into. | |
Additional Inherited Members | |
![]() | |
Tag | $target = null |
Tag being targeted. | |
Element containing an icon.
Icons are graphics, about the size of normal text. They can be used to aid the user in locating a control or convey information in a more space efficient way. Icons should rarely be used without labels; such as in a toolbar where space is at a premium or within a context where the meaning is very clear to the user.
OOUI\IconElement::__construct | ( | Element | $element, |
array | $config = array() |
||
) |
OOUI\IconElement::getIcon | ( | ) |
Get icon name.
OOUI\IconElement::setIcon | ( | $icon = null | ) |
Set icon name.
string | null | $icon | Symbolic icon name |