X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/c930e9176a5a85509c5b0230e2bff5c22a591432..ddde20c4d4ac6a8d53de079761155de813845b3c:/docs/output/Ext.MessageBox.html?ds=sidebyside diff --git a/docs/output/Ext.MessageBox.html b/docs/output/Ext.MessageBox.html index d4c818cf..56ed2f1a 100644 --- a/docs/output/Ext.MessageBox.html +++ b/docs/output/Ext.MessageBox.html @@ -1,4 +1,4 @@ -
Package: | Ext |
Defined In: | MessageBox.js |
Class: | MessageBox |
Extends: | Object |
Utility class for generating different styles of message boxes. The alias Ext.Msg can also be used.
+Package: | Ext |
Defined In: | MessageBox.js |
Class: | MessageBox |
Extends: | Object |
Utility class for generating different styles of message boxes. The alias Ext.Msg can also be used.
Note that the MessageBox is asynchronous. Unlike a regular JavaScript alert
(which will halt
browser execution), showing a MessageBox will not cause the code to stop. For this reason, if you have code
that should only run after some user feedback from the MessageBox, you must use a callback function
@@ -26,21 +26,23 @@ Ext.Msg.show({
Supported ...
Method | Defined By | |
---|---|---|
alert( String title , String msg , [Function fn ], [Object scope ] )
+for setting a different minimum width than text-only dialogs may need (defaults to 250). | MessageBox | |
minPromptWidth : Number The minimum width in pixels of the message box if it is a prompt dialog. This is useful
+for setting a different mini... The minimum width in pixels of the message box if it is a prompt dialog. This is useful
+for setting a different minimum width than text-only dialogs may need (defaults to 250). | MessageBox | |
minWidth : Number The minimum width in pixels of the message box (defaults to 100) | MessageBox |
Method | Defined By | |
---|---|---|
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 c... 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:
| MessageBox | |
confirm( String title , String msg , [Function fn ], [Object scope ] )
+(could also be the top-right close button).Parameters:
| 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 funct... 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:
| MessageBox | |
getDialog()
+(could also be the top-right close button). Parameters:
| MessageBox | |
getDialog()
:
Ext.Window Returns a reference to the underlying Ext.Window element Returns a reference to the underlying Ext.Window element Parameters:
| MessageBox | |
hide()
:
@@ -56,14 +58,14 @@ and closing the message box when the process is complete. Displays 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:
| 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 c... 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. The following built-in icon classes are supported, but you can also pass
-in a custom class name:
+to clear any existing icon. This method must be called before the MessageBox is shown.
+The following built-in icon classes are supported, but you can also pass in a custom class name:
progress and wait dialogs will ignore this property and always hide the close button as they can only
be closed programmatically.Ext.MessageBox.INFO Ext.MessageBox.WARNING @@ -83,6 +85,8 @@ cancel:'Bar'}), or false to not show any buttons (defaults to false) A custom CSS class to apply to the message box's container element The default height in pixels of the message box's multiline textarea
+if displayed (defaults to 75) A callback function which is called when the dialog is dismissed either
by clicking on the configured buttons, or on the dialog close button, or by pressing
the return button to enter input.
@@ -110,15 +114,11 @@ add an optional header icon (defaults to '') A string that will replace the existing message box body text (defaults to the
XHTML-compliant non-breaking space character ' ')
-If prompt is true, instead of prompting the user with a single line textbox,
-specify multiline = true to prompt the user with a multiline textarea
-using the defaultTextHeight property, or specify a height in pixels
-to create the textarea (defaults to false creating a single-line textbox)
+True to prompt the user to enter multi-line text (defaults to false) True to display a progress bar (defaults to false) The text to display inside the progress bar if progress = true (defaults to '')
-True to prompt the user with a textbox or textarea (defaults to false) True to prompt the user to enter single-line text (defaults to false) True to display a lightweight proxy while dragging (defaults to false) The title text The string value to set into the active textbox element if displayed |