A.ToggleButton Class
A base class for ToggleButton.
Constructor
A.ToggleButton
-
config
Parameters:
-
config
ObjectObject literal specifying widget configuration properties.
Index
Methods
Methods
_afterCssClassChange
-
event
Fires after the value of the cssClass attribute change.
Parameters:
-
event
EventFacade
_afterIconAlignChange
-
event
<p>Fires after <code>iconAlign</code> attribute change.</p>
Parameters:
-
event
EventFacade
_afterIconChange
-
event
<p>Fires after <code>icon</code> attribute change.</p>
Parameters:
-
event
EventFacade
_domTypeValidator
-
type
<p>Checks if the domType attribute has a valid value.</p>
Parameters:
-
type
String
_setEarlyButtonDomType
-
type
<p>Sets button type on bounding box template before constructor is invoked. The type is set before widget creates the bounding box node.</p>
Parameters:
-
type
String
_uiSetCssClass
-
newVal
-
prevVal
Applies the CSS classes to the boundingBox
and contentBox
.
Parameters:
-
newVal
String -
prevVal
String
_uiSetIcon
-
val
<p>Adds class name for button icon.</p>
Parameters:
-
val
String
_uiSetIconAlign
-
val
<p>Adds alignment for button icon.</p>
Parameters:
-
val
String
initializer
()
protected
<p>Construction logic executed during <code>ButtonExt</code> instantiation. Lifecycle.</p>
renderButtonExtUI
()
protected
<p>Includes default button classes if necessary. Fires after <code>renderUI</code> method.</p>
setButtonRole
()
protected
<p>Sets the role attribute on the bounding box to 'button';</p>
syncButtonExtUI
()
<p>Updates icon CSS class.</p>
Attributes
discardDefaultButtonCssClasses
Boolean
<p>Defines if the button will discard the default button classes.</p>
Default: false
domType
String
<p>Defines the HTML type attribute of element e.g. <code><input type="button"></code>.</p>