A.ButtonExt Class
alloy-ui/src/aui-button/js/aui-button-core.js:18
A base class for ButtonExt
.
Constructor
A.ButtonExt
-
config
Parameters:
-
config
ObjectObject literal specifying widget configuration properties.
Methods
_afterIconAlignChange
-
event
Fires after iconAlign
attribute change.
Parameters:
-
event
EventFacade
_afterIconChange
-
event
Fires after icon
attribute change.
Parameters:
-
event
EventFacade
_domTypeValidator
-
type
Checks if the domType attribute has a valid value.
Parameters:
-
type
String
_setEarlyButtonDomType
-
type
Sets button type on bounding box template before constructor is invoked. The type is set before widget creates the bounding box node.
Parameters:
-
type
String
_uiSetIcon
-
val
Adds class name for button icon.
Parameters:
-
val
String
_uiSetIconAlign
-
val
Adds alignment for button icon.
Parameters:
-
val
String
getTypedButtonTemplate
-
template
-
type
Updates the HTML markup specified as the template
argument with the
passed type
.
Parameters:
-
template
String -
type
String
Returns:
The parsed template containing the DOM type
, e.g.
<button {type} />
generates <button type="button" />
.
initializer
()
protected
Construction logic executed during ButtonExt
instantiation. Lifecycle.
renderButtonExtUI
()
protected
Includes default button classes if necessary.
Fires after renderUI
method.
setButtonRole
()
protected
Sets the role attribute on the bounding box to 'button';
syncButtonExtUI
()
Updates icon CSS class.
Properties
ATTRS
Object
static
Defines the default attribute configuration for the ButtonExt
.
HTML_PARSER
Object
static
Defines how attribute values are to be parsed from markup contained in
ButtonExt
.