Class Banana.Controls.Button
Extends
Banana.Controls.Panel.
- Methods borrowed from class Banana.UiControl:
- addControl, addCss, addCssClass, getAttribute, getAttributes, getClientId, getCss, getCssClass, getDimensions, getHtml, getHtmlAttributes, getState, getStyle, getStyleProperty, hasCssClass, registerEvents, removeAttribute, removeCssClass, removeState, setAttribute, setClientId, setCss, setState, setStyle, setVisible, switchCssClass, triggerEvent, unregisterEvents
- Methods borrowed from class Banana.Control:
- applyToChildren, bind, clear, createComponents, findControl, generateUniqueId, getControls, getDomEventTypes, getFirstUiControl, getId, getPage, getParent, getProxy, hasBind, invalidateDisplay, onPreInvalidateContents, onWindowResize, remove, render, setId, setPage, setParent, unbind, unload, updateDisplay
Defined in: Button.js.
Class Detail
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 Detail
- Parameters:
- {boolean} enables
- or disables button
- Returns:
- {Banana.Controls.Button}