Class Banana.Controls.ConfirmModal
Extends
Banana.Controls.Modal.
- Methods borrowed from class Banana.Controls.Modal:
- addControl, center, createComponents, hide, setButtons, setButtonsEnabled, setKeepFixed, setTitle, updateDisplay
- 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: ConfirmModal.js.
Class Detail
Banana.Controls.ConfirmModal()
Creates a modal in which we have confirm to continue. Handy for crucial operations. The data passed along defines the texts shown in the modal.
Example:
//if we not have the confirm modal already, create it.
if (!this.confirm)
{
this.confirm = new Banana.Controls.ConfirmModal();
this.addControl(this.confirm, true);
}
this.confirm.setTitle("title")
this.confirm.setTextTitle("texttitle");
this.confirm.setText("text")
this.confirm.bind('onOk', this.getProxy(function(){
//do things here
}));
//display the confirm modal
this.confirm.show();
Method Detail
- Parameters:
- {String} text
- Returns:
- {Banana.Controls.ConfirmModal}
- Parameters:
- {String} text
- Returns:
- {Banana.Controls.ConfirmModal}