Index

Classes

Class

Methods

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
{String} getTagName()
Returns:
{String}
{Banana.Controls.Button} setEnabled(enables)
Parameters:
{boolean} enables
or disables button
Returns:
{Banana.Controls.Button}
{this} setImage(image)
Parameters:
{String} image
Returns:
{this}
{this} setLabelCssClass(clas)

sets css class on the label of the button

Parameters:
{String} clas
Returns:
{this}
{this} setLabelStyle(style)

sets style on the text label

Parameters:
{String} style
Returns:
{this}
{this} setText(text)

sets the text on the button

Parameters:
{String} text
Returns:
{this}

Documentation generated by JsDoc Toolkit 2.4.0 on Wed Dec 05 2012 22:01:29 GMT+0100 (CET)