Skip to content

API Button Method List

fahimc edited this page Oct 4, 2012 · 3 revisions

Extends UIElement

labelClassName(value):String - getter and setter for setting the label element's class name.
asset(value) - provide a background sprite or the source to the sprite.
text(value):String - getter and setter for setting the label element's innerHTML.
activate() - activating the button. Adds the listeners.
deactivate() - deactivating the button. Removes the listeners.
disable() - deactivating the button and setting the button to disabled state (the fourth state in the spritesheet)

Clone this wiki locally