OOjsUI
Object-Oriented JavaScript – User Interface
|
Element with a button. More...
Public Member Functions | |
__construct (Element $element, array $config=array()) | |
toggleFramed ($framed=null) | |
Toggle frame. More... | |
isFramed () | |
Check if button has a frame. 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 = 'button' |
![]() | |
static string | $targetPropertyName = '' |
Property name for accessing the target on the element. | |
Protected Attributes | |
boolean | $framed = false |
Button is framed. | |
![]() | |
Element | $element = null |
Element being mixed into. | |
Additional Inherited Members | |
![]() | |
Tag | $target = null |
Tag being targeted. | |
Element with a button.
Buttons are used for controls which can be clicked. They can be configured to use tab indexing and access keys for accessibility purposes.
OOUI\ButtonElement::__construct | ( | Element | $element, |
array | $config = array() |
||
) |
OOUI\ButtonElement::isFramed | ( | ) |
Check if button has a frame.
OOUI\ButtonElement::toggleFramed | ( | $framed = null | ) |
Toggle frame.
boolean | $framed | Make button framed, omit to toggle |