Class Banana.Controls.ConfirmModal
Defined in: ConfirmModal.js.
Constructor Summary
Method Summary
Constructor Detail
new 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
setTextTitle(text)
: Banana.Controls.ConfirmModal
Parameters:
{String} | text |
Returns:
{Banana.Controls.ConfirmModal} |
setText(text)
: Banana.Controls.ConfirmModal
Parameters:
{String} | text |
Returns:
{Banana.Controls.ConfirmModal} |