OOjsUI
Object-Oriented JavaScript – User Interface
|
Element containing a label. More...
Public Member Functions | |
__construct (Element $element, array $config=array()) | |
setLabel ($label) | |
Set the label. More... | |
getLabel () | |
Get the label. 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 = 'label' |
![]() | |
static string | $targetPropertyName = '' |
Property name for accessing the target on the element. | |
Protected Attributes | |
string HtmlSnippet null | $label = null |
Label value. | |
![]() | |
Element | $element = null |
Element being mixed into. | |
Additional Inherited Members | |
![]() | |
Tag | $target = null |
Tag being targeted. | |
Element containing a label.
OOUI\LabelElement::__construct | ( | Element | $element, |
array | $config = array() |
||
) |
Element | $element | Element being mixed into |
array | $config | Configuration options |
string | HtmlSnippet | $config,['label'] | Label text |
OOUI\LabelElement::getLabel | ( | ) |
Get the label.
OOUI\LabelElement::setLabel | ( | $label | ) |
Set the label.
An empty string will result in the label being hidden. A string containing only whitespace will be converted to a single
.
string | HtmlSnippet | null | $label | Label text |