|
| alert( String title , String msg , [Function fn ], [Object scope ] )
+ :
+ Ext.MessageBoxDisplays a standard read-only message box with an OK button (comparable to the basic JavaScript alert prompt).
If a ... Displays a standard read-only message box with an OK button (comparable to the basic JavaScript alert prompt).
If a callback function is passed it will be called after the user clicks the button, and the
id of the button that was clicked will be passed as the only parameter to the callback
-(could also be the top-right close button). Parameters:title : StringThe title bar text msg : StringThe message box body text fn : Function(optional) The callback function invoked after the message box is closed scope : Object(optional) The scope (this reference) in which the callback is executed. Defaults to the browser wnidow. Returns: | MessageBox |
| confirm( String title , String msg , [Function fn ], [Object scope ] )
- :
- Ext.MessageBoxDisplays a confirmation message box with Yes and No buttons (comparable to JavaScript's confirm).
+(could also be the top-right close button). Parameters:title : StringThe title bar text msg : StringThe message box body text fn : Function(optional) The callback function invoked after the message box is closed scope : Object(optional) The scope (this reference) in which the callback is executed. Defaults to the browser wnidow. Returns: | MessageBox |
| confirm( String title , String msg , [Function fn ], [Object scope ] )
+ :
+ Ext.MessageBoxDisplays a confirmation message box with Yes and No buttons (comparable to JavaScript's confirm).
If a callback func... Displays a confirmation message box with Yes and No buttons (comparable to JavaScript's confirm).
If a callback function is passed it will be called after the user clicks either button,
and the id of the button that was clicked will be passed as the only parameter to the callback
-(could also be the top-right close button). Parameters:title : StringThe title bar text msg : StringThe message box body text fn : Function(optional) The callback function invoked after the message box is closed scope : Object(optional) The scope (this reference) in which the callback is executed. Defaults to the browser wnidow. Returns: | MessageBox |
| getDialog()
- :
- Ext.WindowReturns a reference to the underlying Ext.Window element Returns a reference to the underlying Ext.Window element | MessageBox |
| hide()
- :
- Ext.MessageBoxHides the message box if it is displayed Hides the message box if it is displayed | MessageBox |
| isVisible()
- :
- BooleanReturns true if the message box is currently displayed Returns true if the message box is currently displayed | MessageBox |
| progress( String title , String msg , [String progressText ] )
- :
- Ext.MessageBoxDisplays a message box with a progress bar. This message box has no buttons and is not closeable by
+(could also be the top-right close button). Parameters:title : StringThe title bar text msg : StringThe message box body text fn : Function(optional) The callback function invoked after the message box is closed scope : Object(optional) The scope (this reference) in which the callback is executed. Defaults to the browser wnidow. Returns: | MessageBox |
| getDialog()
+ :
+ Ext.WindowReturns a reference to the underlying Ext.Window element Returns a reference to the underlying Ext.Window element | MessageBox |
| hide()
+ :
+ Ext.MessageBoxHides the message box if it is displayed Hides the message box if it is displayed | MessageBox |
| isVisible()
+ :
+ BooleanReturns true if the message box is currently displayed Returns true if the message box is currently displayed | MessageBox |
| progress( String title , String msg , [String progressText ] )
+ :
+ Ext.MessageBoxDisplays a message box with a progress bar. This message box has no buttons and is not closeable by
the user. You ... Displays a message box with a progress bar. This message box has no buttons and is not closeable by
the user. You are responsible for updating the progress bar as needed via Ext.MessageBox.updateProgress
-and closing the message box when the process is complete. | MessageBox |
| prompt( String title , String msg , [Function fn ], [Object scope ], [Boolean/Number multiline ], [String value ] )
- :
+and closing the message box when the process is complete. | MessageBox |
| prompt( String title , String msg , [Function fn ], [Object scope ], [Boolean/Number multiline ], [String value ] )
+ :
Ext.MessageBoxDisplays a message box with OK and Cancel buttons prompting the user to enter some text (comparable to JavaScript's p... Displays a message box with OK and Cancel buttons prompting the user to enter some text (comparable to JavaScript's prompt).
The prompt can be a single-line or multi-line textbox. If a callback function is passed it will be called after the user
clicks either button, and the id of the button that was clicked (could also be the top-right
close button) and the text that was entered will be passed as the two parameters to the callback. Parameters:title : StringThe title bar text msg : StringThe message box body text fn : Function(optional) The callback function invoked after the message box is closed scope : Object(optional) The scope (this reference) in which the callback is executed. Defaults to the browser wnidow. multiline : Boolean/Number(optional) True to create a multiline textbox using the defaultTextHeight
-property, or the height in pixels to create the textbox (defaults to false / single-line) value : String(optional) Default value of the text input element (defaults to '') Returns: | MessageBox |
| setIcon( String icon )
- :
- Ext.MessageBoxAdds the specified icon to the dialog. By default, the class 'ext-mb-icon' is applied for default
+property, or the height in pixels to create the textbox (defaults to false / single-line) value : String(optional) Default value of the text input element (defaults to '') Returns: | MessageBox |
| setIcon( String icon )
+ :
+ Ext.MessageBoxAdds the specified icon to the dialog. By default, the class 'ext-mb-icon' is applied for default
styling, and the ... Adds the specified icon to the dialog. By default, the class 'ext-mb-icon' is applied for default
styling, and the class passed in is expected to supply the background image url. Pass in empty string ('')
to clear any existing icon. This method must be called before the MessageBox is shown.
@@ -69,9 +71,9 @@ Ext.MessageBox.INFO
Ext.MessageBox.WARNING
Ext.MessageBox.QUESTION
Ext.MessageBox.ERROR
- | MessageBox |
| show( Object config )
- :
- Ext.MessageBoxDisplays a new message box, or reinitializes an existing message box, based on the config options
+ | MessageBox |
| show( Object config )
+ :
+ Ext.MessageBoxDisplays a new message box, or reinitializes an existing message box, based on the config options
passed in. All dis... Displays a new message box, or reinitializes an existing message box, based on the config options
passed in. All display functions (e.g. prompt, alert, etc.) on MessageBox call this function internally,
although those calls are basic shortcuts and do not support all of the config options allowed here. Parameters:config : ObjectThe following config options are supported:
@@ -134,18 +136,18 @@ Example usage:
fn: saveAddress,
animEl: 'addAddressBtn',
icon: Ext.MessageBox.INFO
-}); Returns: | MessageBox |
| updateProgress( Number value , String progressText , String msg )
- :
- Ext.MessageBoxUpdates a progress-style message box's text and progress bar. Only relevant on message boxes
+}); Returns: | MessageBox |
| updateProgress( Number value , String progressText , String msg )
+ :
+ Ext.MessageBoxUpdates a progress-style message box's text and progress bar. Only relevant on message boxes
initiated via Ext.Messa... Updates a progress-style message box's text and progress bar. Only relevant on message boxes
initiated via Ext.MessageBox.progress or Ext.MessageBox.wait,
or by calling Ext.MessageBox.show with progress: true. Parameters:value : NumberAny number between 0 and 1 (e.g., .5, defaults to 0) progressText : StringThe progress text to display inside the progress bar (defaults to '') msg : StringThe message box's body text is replaced with the specified string (defaults to undefined
-so that any existing body text will not get overwritten by default unless a new value is passed in) Returns: | MessageBox |
| updateText( [String text ] )
- :
+so that any existing body text will not get overwritten by default unless a new value is passed in)Returns: | MessageBox |
| updateText( [String text ] )
+ :
Ext.MessageBoxUpdates the message box body text Updates the message box body text | MessageBox |
| wait( String msg , [String title ], [Object config ] )
- :
- Ext.MessageBoxDisplays a message box with an infinitely auto-updating progress bar. This can be used to block user
+the XHTML-compliant non-breaking space character ' ') Returns: | MessageBox |
| wait( String msg , [String title ], [Object config ] )
+ :
+ Ext.MessageBoxDisplays a message box with an infinitely auto-updating progress bar. This can be used to block user
interaction wh... Displays a message box with an infinitely auto-updating progress bar. This can be used to block user
interaction while waiting for a long-running process to complete that does not have defined intervals.
You are responsible for closing the message box when the process is complete. | MessageBox |