A.ButtonExt Class
alloy-ui/src/aui-button/js/aui-button-core.js:18
A base class for ButtonExt.
Constructor
A.ButtonExt
-
config
Parameters:
-
configObjectObject literal specifying widget configuration properties.
Methods
_afterIconAlignChange
-
event
Fires after iconAlign attribute change.
Parameters:
-
eventEventFacade
_afterIconChange
-
event
Fires after icon attribute change.
Parameters:
-
eventEventFacade
_domTypeValidator
-
type
Checks if the domType attribute has a valid value.
Parameters:
-
typeString
_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:
-
typeString
_uiSetIcon
-
val
Adds class name for button icon.
Parameters:
-
valString
_uiSetIconAlign
-
val
Adds alignment for button icon.
Parameters:
-
valString
getTypedButtonTemplate
-
template -
type
Updates the HTML markup specified as the template argument with the
passed type.
Parameters:
-
templateString -
typeString
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.