/* This file is part of Ext JS 3.4 Copyright (c) 2011-2013 Sencha Inc Contact: http://www.sencha.com/contact GNU General Public License Usage This file may be used under the terms of the GNU General Public License version 3.0 as published by the Free Software Foundation and appearing in the file LICENSE included in the packaging of this file. Please review the following information to ensure the GNU General Public License version 3.0 requirements will be met: http://www.gnu.org/copyleft/gpl.html. If you are unsure which license is appropriate for your use, please contact the sales department at http://www.sencha.com/contact. Build date: 2013-04-03 15:07:25 */ Ext.data.JsonP.Ext_MessageBox({"alternateClassNames":[],"aliases":{},"enum":null,"parentMixins":[],"tagname":"class","subclasses":[],"extends":null,"uses":[],"html":"
Files
Utility class for generating different styles of message boxes. The alias Ext.Msg can also be used.
\nNote that the MessageBox is asynchronous. Unlike a regular JavaScript alert
(which will halt\nbrowser execution), showing a MessageBox will not cause the code to stop. For this reason, if you have code\nthat should only run after some user feedback from the MessageBox, you must use a callback function\n(see the function
parameter for show for more details).
Example usage:
\n// Basic alert:\nExt.Msg.alert('Status', 'Changes saved successfully.');\n\n// Prompt for user data and process the result using a callback:\nExt.Msg.prompt('Name', 'Please enter your name:', function(btn, text){\n if (btn == 'ok'){\n // process text value and close...\n }\n});\n\n// Show a dialog using config options:\nExt.Msg.show({\n title:'Save Changes?',\n msg: 'You are closing a tab that has unsaved changes. Would you like to save your changes?',\n buttons: Ext.Msg.YESNOCANCEL,\n fn: processResult,\n animEl: 'elId',\n icon: Ext.MessageBox.QUESTION\n});\n
\n\nButton config that displays a single Cancel button
\nDefaults to: {cancel: true}
The CSS class that provides the ERROR icon image
\nDefaults to: 'ext-mb-error'
The CSS class that provides the INFO icon image
\nDefaults to: 'ext-mb-info'
Button config that displays a single OK button
\nDefaults to: {ok: true}
Button config that displays OK and Cancel buttons
\nDefaults to: {ok: true, cancel: true}
The CSS class that provides the QUESTION icon image
\nDefaults to: 'ext-mb-question'
The CSS class that provides the WARNING icon image
\nDefaults to: 'ext-mb-warning'
Button config that displays Yes and No buttons
\nDefaults to: {yes: true, no: true}
Button config that displays Yes, No and Cancel buttons
\nDefaults to: {yes: true, no: true, cancel: true}
The default height in pixels of the message box's multiline textarea if displayed (defaults to 75)
\nDefaults to: 75
The maximum width in pixels of the message box (defaults to 600)
\nDefaults to: 600
The minimum width in pixels of the message box if it is a progress-style dialog. This is useful\nfor setting a different minimum width than text-only dialogs may need (defaults to 250).
\nDefaults to: 250
Displays a standard read-only message box with an OK button (comparable to the basic JavaScript alert prompt).\nIf a callback function is passed it will be called after the user clicks the button, and the\nid of the button that was clicked will be passed as the only parameter to the callback\n(could also be the top-right close button).
\nThe title bar text
\nThe message box body text
\nThe callback function invoked after the message box is closed
\nThe scope (this
reference) in which the callback is executed. Defaults to the browser wnidow.
this
\nDisplays a confirmation message box with Yes and No buttons (comparable to JavaScript's confirm).\nIf a callback function is passed it will be called after the user clicks either button,\nand the id of the button that was clicked will be passed as the only parameter to the callback\n(could also be the top-right close button).
\nThe title bar text
\nThe message box body text
\nThe callback function invoked after the message box is closed
\nThe scope (this
reference) in which the callback is executed. Defaults to the browser wnidow.
this
\nReturns a reference to the underlying Ext.Window element
\nThe window
\nReturns true if the message box is currently displayed
\nTrue if the message box is visible, else false
\nDisplays a message box with a progress bar. This message box has no buttons and is not closeable by\nthe user. You are responsible for updating the progress bar as needed via updateProgress\nand closing the message box when the process is complete.
\nThe title bar text
\nThe message box body text
\nThe text to display inside the progress bar (defaults to '')
\nthis
\nDisplays a message box with OK and Cancel buttons prompting the user to enter some text (comparable to JavaScript's prompt).\nThe prompt can be a single-line or multi-line textbox. If a callback function is passed it will be called after the user\nclicks either button, and the id of the button that was clicked (could also be the top-right\nclose button) and the text that was entered will be passed as the two parameters to the callback.
\nThe title bar text
\nThe message box body text
\nThe callback function invoked after the message box is closed
\nThe scope (this
reference) in which the callback is executed. Defaults to the browser wnidow.
True to create a multiline textbox using the defaultTextHeight\nproperty, or the height in pixels to create the textbox (defaults to false / single-line)
\nDefault value of the text input element (defaults to '')
\nthis
\nAdds the specified icon to the dialog. By default, the class 'ext-mb-icon' is applied for default\nstyling, and the class passed in is expected to supply the background image url. Pass in empty string ('')\nto clear any existing icon. This method must be called before the MessageBox is shown.\nThe following built-in icon classes are supported, but you can also pass in a custom class name:
\n\nExt.MessageBox.INFO\nExt.MessageBox.WARNING\nExt.MessageBox.QUESTION\nExt.MessageBox.ERROR\n\n\n
A CSS classname specifying the icon's background image url, or empty string to clear the icon
\nthis
\nDisplays a new message box, or reinitializes an existing message box, based on the config options\npassed in. All display functions (e.g. prompt, alert, etc.) on MessageBox call this function internally,\nalthough those calls are basic shortcuts and do not support all of the config options allowed here.
\nThe following config options are supported:
Progress and wait dialogs will ignore this option since they do not respond to user\nactions and can only be closed programmatically, so any required function should be called\nby the same code after it closes the dialog. Parameters passed:
Ext.Msg.show({\n title: 'Address',\n msg: 'Please enter your address:',\n width: 300,\n buttons: Ext.MessageBox.OKCANCEL,\n multiline: true,\n fn: saveAddress,\n animEl: 'addAddressBtn',\n icon: Ext.MessageBox.INFO\n});\n
\n\nthis
\nUpdates a progress-style message box's text and progress bar. Only relevant on message boxes\ninitiated via progress or wait,\nor by calling show with progress: true.
\nAny number between 0 and 1 (e.g., .5, defaults to 0)
\nThe progress text to display inside the progress bar (defaults to '')
\nThe message box's body text is replaced with the specified string (defaults to undefined\nso that any existing body text will not get overwritten by default unless a new value is passed in)
\nthis
\nUpdates the message box body text
\nReplaces the message box element's innerHTML with the specified string (defaults to\nthe XHTML-compliant non-breaking space character ' ')
\nthis
\nDisplays a message box with an infinitely auto-updating progress bar. This can be used to block user\ninteraction while waiting for a long-running process to complete that does not have defined intervals.\nYou are responsible for closing the message box when the process is complete.
\nThe message box body text
\nThe title bar text
\nA Ext.ProgressBar.waitConfig object
\nthis
\n