X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/25ef3491bd9ae007ff1fc2b0d7943e6eaaccf775..6e39d509471fe9b4e2660e0d1631b350d0c66f40:/docs/output/Ext.MessageBox.html diff --git a/docs/output/Ext.MessageBox.html b/docs/output/Ext.MessageBox.html index cf127147..20b29bf3 100644 --- a/docs/output/Ext.MessageBox.html +++ b/docs/output/Ext.MessageBox.html @@ -1,4 +1,4 @@ -
Properties Methods Events Direct Link

Class Ext.MessageBox

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.

+

Class Ext.MessageBox

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 @@ -34,13 +34,13 @@ for setting a different minimum width than text-only dialogs may need (defaults 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 : String
    The title bar text
  • msg : String
    The message box body text
  • fn : Function
    (optional) The callback function invoked after the message box is closed
  • scope : Object
    (optional) The scope of the callback function
Returns:
  • Ext.MessageBox
    this
MessageBox confirmString titleString msg[Function fn][Object scope] ) +(could also be the top-right close button).
Parameters:
  • title : String
    The title bar text
  • msg : String
    The 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:
  • Ext.MessageBox
    this
MessageBox confirmString titleString msg[Function fn][Object scope] ) : Ext.MessageBox
Displays 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 : String
    The title bar text
  • msg : String
    The message box body text
  • fn : Function
    (optional) The callback function invoked after the message box is closed
  • scope : Object
    (optional) The scope of the callback function
Returns:
  • Ext.MessageBox
    this
MessageBox getDialog() +(could also be the top-right close button).
Parameters:Returns:
MessageBox getDialog() : Ext.Window
Returns a reference to the underlying Ext.Window element
Returns a reference to the underlying Ext.Window element
Parameters:
  • None.
Returns:
  • Ext.Window
    The window
MessageBox hide() : @@ -56,7 +56,7 @@ 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:
  • title : String
    The title bar text
  • msg : String
    The message box body text
  • fn : Function
    (optional) The callback function invoked after the message box is closed
  • scope : Object
    (optional) The scope of the callback function
  • multiline : Boolean/Number
    (optional) True to create a multiline textbox using the defaultTextHeight +close button) and the text that was entered will be passed as the two parameters to the callback.
    Parameters:
    • title : String
      The title bar text
    • msg : String
      The 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:
    • Ext.MessageBox
      this
MessageBox setIconString icon ) : Ext.MessageBox
Adds the specified icon to the dialog. By default, the class 'ext-mb-icon' is applied for default