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
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}
Set the buttons which we show at the bottom of the modal
- Parameters:
- {Array} of
- Banana.Controls.Buttons