Class Banana.Controls.Button
Defined in: Button.js.
Constructor Summary
new Banana.Controls.Button
()
Creates a simple button Example: var button = new Banana.Controls.Button(); this.addControl(button); //add button to a collection button.bind('click',function(){ //do something here });
Method Summary
setEnabled(enables)
setImage(image)
Constructor Detail
Method Detail
setEnabled(enables)
: Banana.Controls.Button
Parameters:
{boolean} | enables | or disables button |
Returns:
{Banana.Controls.Button} |