ext.messagebox.html.svn-base
来自「PHP 知识管理系统(基于树结构的知识管理系统), 英文原版的PHP源码。」· SVN-BASE 代码 · 共 531 行 · 第 1/3 页
SVN-BASE
531 行
</tr>
<tr class="property-row alt">
<td class="micon"><a class="exi" href="#expand"> </a></td>
<td class="sig">
<a id="Ext.MessageBox-minWidth"></a>
<b>minWidth</b> : Number <div class="mdesc">
The minimum width in pixels of the message box (defaults to 100) </div>
</td>
<td class="msource">MessageBox</td>
</tr>
</table> <a id="Ext.MessageBox-methods"></a> <h2>Public Methods</h2> <table cellspacing="0" class="member-table"> <tr> <th class="sig-header" colspan="2">Method</th> <th class="msource-header">Defined By</th> </tr> <tr class="method-row expandable">
<td class="micon"><a class="exi" href="#expand"> </a></td>
<td class="sig">
<a id="Ext.MessageBox-alert"></a>
<b>alert</b>( <code>String title</code>, <code>String msg</code>, <span class="optional" title="Optional">[<code>Function fn</code>]</span>, <span class="optional" title="Optional">[<code>Object scope</code>]</span> ) : Ext.MessageBox <div class="mdesc">
<div class="short">Displays a standard read-only message box with an OK button (comparable to the basic JavaScript alert prompt).If a c...</div>
<div class="long">
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 theid of the button that was clicked will be passed as the only parameter to the callback(could also be the top-right close button). <div class="mdetail-params">
<strong>Parameters:</strong>
<ul><li><code>title</code> : String<div class="sub-desc">The title bar text</div></li><li><code>msg</code> : String<div class="sub-desc">The message box body text</div></li><li><code>fn</code> : Function<div class="sub-desc">(optional) The callback function invoked after the message box is closed</div></li><li><code>scope</code> : Object<div class="sub-desc">(optional) The scope of the callback function</div></li> </ul>
<strong>Returns:</strong>
<ul>
<li><code>Ext.MessageBox</code><div class="sub-desc">this</div></li>
</ul>
</div>
</div>
</div>
</td>
<td class="msource">MessageBox</td>
</tr>
<tr class="method-row alt expandable">
<td class="micon"><a class="exi" href="#expand"> </a></td>
<td class="sig">
<a id="Ext.MessageBox-confirm"></a>
<b>confirm</b>( <code>String title</code>, <code>String msg</code>, <span class="optional" title="Optional">[<code>Function fn</code>]</span>, <span class="optional" title="Optional">[<code>Object scope</code>]</span> ) : Ext.MessageBox <div class="mdesc">
<div class="short">Displays a confirmation message box with Yes and No buttons (comparable to JavaScript's confirm).If a callback funct...</div>
<div class="long">
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). <div class="mdetail-params">
<strong>Parameters:</strong>
<ul><li><code>title</code> : String<div class="sub-desc">The title bar text</div></li><li><code>msg</code> : String<div class="sub-desc">The message box body text</div></li><li><code>fn</code> : Function<div class="sub-desc">(optional) The callback function invoked after the message box is closed</div></li><li><code>scope</code> : Object<div class="sub-desc">(optional) The scope of the callback function</div></li> </ul>
<strong>Returns:</strong>
<ul>
<li><code>Ext.MessageBox</code><div class="sub-desc">this</div></li>
</ul>
</div>
</div>
</div>
</td>
<td class="msource">MessageBox</td>
</tr>
<tr class="method-row expandable">
<td class="micon"><a class="exi" href="#expand"> </a></td>
<td class="sig">
<a id="Ext.MessageBox-getDialog"></a>
<b>getDialog</b>() : Ext.Window <div class="mdesc">
<div class="short">Returns a reference to the underlying <a ext:cls="Ext.Window" href="output/Ext.Window.html">Ext.Window</a> element</div>
<div class="long">
Returns a reference to the underlying <a ext:cls="Ext.Window" href="output/Ext.Window.html">Ext.Window</a> element <div class="mdetail-params">
<strong>Parameters:</strong>
<ul><li>None.</li> </ul>
<strong>Returns:</strong>
<ul>
<li><code>Ext.Window</code><div class="sub-desc">The window</div></li>
</ul>
</div>
</div>
</div>
</td>
<td class="msource">MessageBox</td>
</tr>
<tr class="method-row alt expandable">
<td class="micon"><a class="exi" href="#expand"> </a></td>
<td class="sig">
<a id="Ext.MessageBox-hide"></a>
<b>hide</b>() : Ext.MessageBox <div class="mdesc">
<div class="short">Hides the message box if it is displayed</div>
<div class="long">
Hides the message box if it is displayed <div class="mdetail-params">
<strong>Parameters:</strong>
<ul><li>None.</li> </ul>
<strong>Returns:</strong>
<ul>
<li><code>Ext.MessageBox</code><div class="sub-desc">this</div></li>
</ul>
</div>
</div>
</div>
</td>
<td class="msource">MessageBox</td>
</tr>
<tr class="method-row expandable">
<td class="micon"><a class="exi" href="#expand"> </a></td>
<td class="sig">
<a id="Ext.MessageBox-isVisible"></a>
<b>isVisible</b>() : Boolean <div class="mdesc">
<div class="short">Returns true if the message box is currently displayed</div>
<div class="long">
Returns true if the message box is currently displayed <div class="mdetail-params">
<strong>Parameters:</strong>
<ul><li>None.</li> </ul>
<strong>Returns:</strong>
<ul>
<li><code>Boolean</code><div class="sub-desc">True if the message box is visible, else false</div></li>
</ul>
</div>
</div>
</div>
</td>
<td class="msource">MessageBox</td>
</tr>
<tr class="method-row alt expandable">
<td class="micon"><a class="exi" href="#expand"> </a></td>
<td class="sig">
<a id="Ext.MessageBox-progress"></a>
<b>progress</b>( <code>String title</code>, <code>String msg</code>, <span class="optional" title="Optional">[<code>String progressText</code>]</span> ) : Ext.MessageBox <div class="mdesc">
<div class="short">Displays a message box with a progress bar. This message box has no buttons and is not closeable bythe user. You a...</div>
<div class="long">
Displays a message box with a progress bar. This message box has no buttons and is not closeable bythe user. You are responsible for updating the progress bar as needed via <a ext:cls="Ext.MessageBox" ext:member="updateProgress" href="output/Ext.MessageBox.html#updateProgress">Ext.MessageBox.updateProgress</a>and closing the message box when the process is complete. <div class="mdetail-params">
<strong>Parameters:</strong>
<ul><li><code>title</code> : String<div class="sub-desc">The title bar text</div></li><li><code>msg</code> : String<div class="sub-desc">The message box body text</div></li><li><code>progressText</code> : String<div class="sub-desc">(optional) The text to display inside the progress bar (defaults to '')</div></li> </ul>
<strong>Returns:</strong>
<ul>
<li><code>Ext.MessageBox</code><div class="sub-desc">this</div></li>
</ul>
</div>
</div>
</div>
</td>
<td class="msource">MessageBox</td>
</tr>
<tr class="method-row expandable">
<td class="micon"><a class="exi" href="#expand"> </a></td>
<td class="sig">
<a id="Ext.MessageBox-prompt"></a>
<b>prompt</b>( <code>String title</code>, <code>String msg</code>, <span class="optional" title="Optional">[<code>Function fn</code>]</span>, <span class="optional" title="Optional">[<code>Object scope</code>]</span>, <span class="optional" title="Optional">[<code>Boolean/Number multiline</code>]</span>, <span class="optional" title="Optional">[<code>String value</code>]</span> ) : Ext.MessageBox <div class="mdesc">
<div class="short">Displays a message box with OK and Cancel buttons prompting the user to enter some text (comparable to JavaScript's p...</div>
<div class="long">
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 userclicks either button, and the id of the button that was clicked (could also be the top-rightclose button) and the text that was entered will be passed as the two parameters to the callback. <div class="mdetail-params">
<strong>Parameters:</strong>
<ul><li><code>title</code> : String<div class="sub-desc">The title bar text</div></li><li><code>msg</code> : String<div class="sub-desc">The message box body text</div></li><li><code>fn</code> : Function<div class="sub-desc">(optional) The callback function invoked after the message box is closed</div></li><li><code>scope</code> : Object<div class="sub-desc">(optional) The scope of the callback function</div></li><li><code>multiline</code> : Boolean/Number<div class="sub-desc">(optional) True to create a multiline textbox using the defaultTextHeightproperty, or the height in pixels to create the textbox (defaults to false / single-line)</div></li><li><code>value</code> : String<div class="sub-desc">(optional) Default value of the text input element (defaults to '')</div></li> </ul>
<strong>Returns:</strong>
<ul>
<li><code>Ext.MessageBox</code><div class="sub-desc">this</div></li>
</ul>
</div>
</div>
</div>
</td>
<td class="msource">MessageBox</td>
</tr>
<tr class="method-row alt expandable">
<td class="micon"><a class="exi" href="#expand"> </a></td>
<td class="sig">
<a id="Ext.MessageBox-setIcon"></a>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?