oscar.Gui.Dialog is the base class for dialogs in Oscar Framework.
| Inherits from: | oscar.Gui |
@deprecated
| oscar. | oscar.Gui.Dialog is the base class for dialogs in Oscar Framework. |
| Constructor | |
| oscar. | |
| Functions | |
| setHeader | Sets the header for the dialog panel |
| setContent | Sets the content for the dialog panel, can either be text or an HTML element like a div. |
| render | This function will “draw” the dialog panel. |
| hide | This function will hide and destroy the dialog. |
| show | This function will show the dialog panel. |
| addOkButton | This is a convenience method for adding an OK button to the dialog. |
| addCancelButton | This is a convenience method for adding a Cancel button to the dialog. |
| Constants | |
| CLASS_NAME - oscar. |
Sets the header for the dialog panel
setHeader : function( header )
Sets the content for the dialog panel, can either be text or an HTML element like a div.
setContent : function( content )
This function will “draw” the dialog panel.
render : function()
This function will hide and destroy the dialog.
hide : function()
This function will show the dialog panel.
show : function()
This is a convenience method for adding an OK button to the dialog.
addOkButton : function( callback )
This is a convenience method for adding a Cancel button to the dialog.
addCancelButton : function( callback )