Class Banana.Controls.Panel
Extends
Banana.UiControl.
- 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, setEnabled, 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: Panel.js.
Class Detail
Banana.Controls.Panel()
Creates simple panel. A panel can be used as a building block for many custom controls.
Example:
var panel = new Panel();
panel.setStyle("height:100px; width:200px; background-color:red;");
panel.addCssClass("Foo");
this.addControl(panel); //add to collection