Index

Classes

Class

Methods

Class Banana.Controls.Modal


Extends Banana.Controls.Panel.

Methods borrowed from class Banana.Controls.Panel:
getTagName
Methods borrowed from class Banana.UiControl:
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, findControl, generateUniqueId, getControls, getDomEventTypes, getFirstUiControl, getId, getPage, getParent, getProxy, hasBind, invalidateDisplay, onPreInvalidateContents, onWindowResize, remove, render, setId, setPage, setParent, unbind, unload

Defined in: Modal.js.

Class Detail
Banana.Controls.Modal()

Creates a modal. A modal is a control which shows itself on top of other visible controls. Inside of the modal you can add your own control collection. Additional action buttons can be configured which will be visible at the bottom of the modal

Method Detail
{this} addControl(normal)

We override this method to make sure added controls are added not in the normal collection But in another specially created control.

Parameters:
{mixed} Banana.Control
or plaintext
{boolean} normal
if we still want to add it to regular collection
Returns:
{this}
center()

Centers the modal

createComponents()
{this} hide()

Hides the modal

Returns:
{this}
setButtons(of)

Set the buttons which we show at the bottom of the modal

Parameters:
{Array} of
Banana.Controls.Buttons
{this} setButtonsEnabled(bool)
Parameters:
bool
enabled or disables buttons
Returns:
{this}
{this} setKeepFixed(boolean)

Let's the modal stay fixed in the screen. Scrolling down in your page will keep the modal at its position. Not handy when your modal is higher than the height size of your screen.

Parameters:
boolean
Returns:
{this}
{this} setTitle(title)

title of the modal

Parameters:
{String} title
Returns:
{this}
{this} show()

Shows the modal

Returns:
{this}
updateDisplay()

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