⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ext.form.basicform.html

📁 Ext中文API,学习ext的同志只要你学会ext里的一种控件后其实其他的就大同小异了
💻 HTML
📖 第 1 页 / 共 5 页
字号:
                    </td>                    <td class="sig">                        <!--ClassName--><a id="doAction2_1-doAction2_1"></a>                        <b>doAction2_1</b>                        (                                                                                    <code>                                    String/Object actionName,                                </code>                                                                                                                <code>                                    @link Ext.form.BasicForm#isValid isValid prior                                </code>                                                    )                                                    : BasicForm                                                <div class="mdesc">                            <div class="short">                                 Performs a predefined action (Ext....                             </div>                            <div class="long">                                 Performs a predefined action (<a href="###" onClick="alert('Ext.form.Action.Submit');">Ext.form.Action.Submit</a> or <a href="###" onClick="alert('Ext.form.Action.Load');">Ext.form.Action.Load</a>) or a custom extension of <a href="###" onClick="alert('Ext.form.Action');">Ext.form.Action</a>  to perform application-specific processing. or instance of <a href="###" onClick="alert('Ext.form.Action');">Ext.form.Action</a> to perform. All of the config options listed below are supported by both the submit and load actions unless otherwise noted (custom actions could also accept other config options):<ul> <li><b>url</b> : String<p style="margin-left:1em">The url for the action (defaults to the form's url.)</p></li> <li><b>method</b> : String<p style="margin-left:1em">The form method to use (defaults to the form's method, or POST if not defined)</p></li> <li><b>params</b> : String/Object<p style="margin-left:1em">The params to pass (defaults to the form's baseParams, or none if not defined)</p></li> <li><b>headers</b> : Object<p style="margin-left:1em">Request headers to set for the action (defaults to the form's default headers)</p></li> <li><b>success</b> : Function<p style="margin-left:1em">The callback that will be invoked after a successful response.  Note that this is HTTP success (the transaction was sent and received correctly), but the resulting response data can still contain data errors. The function is passed the following parameters:<ul> <li><code>form</code> : Ext.form.BasicForm<div class="sub-desc">The form that requested the action</div></li> <li><code>action</code> : Ext.form.Action<div class="sub-desc">The Action class. The {@link Ext.form.Action#result result} property of this object may be examined to perform custom postprocessing.</div></li> </ul></p></li> <li><b>failure</b> : Function<p style="margin-left:1em">The callback that will be invoked after a failed transaction attempt.  Note that this is HTTP failure, which means a non-successful HTTP code was returned from the server. The function is passed the following parameters:<ul> <li><code>form</code> : Ext.form.BasicForm<div class="sub-desc">The form that requested the action</div></li> <li><code>action</code> : Ext.form.Action<div class="sub-desc">The Action class. If an Ajax error ocurred, the failure type will be in {@link Ext.form.Action#failureType failureType}. The {@link Ext.form.Action#result result} property of this object may be examined to perform custom postprocessing.</div></li> </ul></p></li> <li><b>scope</b> : Object<p style="margin-left:1em">The scope in which to call the callback functions (The <tt>this</tt> reference for the callback functions).</p></li> <li><b>clientValidation</b> : Boolean<p style="margin-left:1em">Submit Action only. Determines whether a Form's fields are validated in a final call to {@link Ext.form.BasicForm#isValid isValid} prior to submission. Set to <tt>false</tt> to prevent this. If undefined, pre-submission field validation is performed.</p></li></ul>                                <div class="mdetail-params">                                    <strong>参数项:</strong>                                    <ul>                                                                                    <li>                                                <code>                                                    actionName                                                </code> : String/Object                                                <div class="sub-desc">                                                    The name of the predefined action type,                                                </div>                                            </li>                                                                                    <li>                                                <code>                                                    prior                                                </code> : @link Ext.form.BasicForm#isValid isValid                                                <div class="sub-desc">                                                    to submission. Set to <tt>false</tt>                                                </div>                                            </li>                                                                            </ul>                                    <b>返回:</b>                                    <ul>                                        <li>                                            <code>                                                BasicForm                                            </code>                                            this                                        </li>                                    </ul>                                </div>                            </div>                        </div>                    </td>                    <td class="msource">                                                BasicForm                                            </td>                </tr>                            <tr class="method-row expandable">                    <td class="micon">                        <a class="exi" href="#expand">&nbsp;</a>                    </td>                    <td class="sig">                        <!--ClassName--><a id="doAction-doAction"></a>                        <b>doAction</b>                        (                                                                                    <code>                                    String actionName,                                </code>                                                                                                                <code>                                    Object options                                </code>                                                    )                                                    : BasicForm                                                <div class="mdesc">                            <div class="short">                                 Performs a predefined action (subm...                             </div>                            <div class="long">                                 Performs a predefined action (submit or load) or custom actions you define on this form.  执行一个预定义的(提交或加载)或一个在表单上自定义的动作, below are supported by both the submit and load actions unless otherwise noted (custom actions could also accept other config options): 传递给行动作象的选项配制。除非另有声明(自定义的动作仍然可以有附加的选项配制),下面是所有提供给提交与加载动作的选项配制列表。 <pre>	Property          Type             Description	----------------  ---------------  ----------------------------------------------------------------------------------	url               String           The url for the action (defaults to the form's url)	method            String           The form method to use (defaults to the form's method, or POST if not defined)	params            String/Object    The params to pass (defaults to the form's baseParams, or none if not defined)	clientValidation  Boolean          Applies to submit only.  Pass true to call form.isValid() prior to posting to                             validate the form on the client (defaults to false) </pre> 	属性					类型					描述 	----------------  	---------------  	----------------------------------------------------------------------------------	url					String				动作请求的url		(默认为表单的url) 	method				String				表单使用的提交方式 	(默认为表单的方法,如果没有指定则"POST") 	params				String/Object		要传递的参数		(默认为表单的基本参数,如果没有指定则为空)	clientValidation	Boolean				只应用到提交方法。为真则在提交前调用表单对像的isValid方法,实现在客户端的验证。(默认为假)                                 <div class="mdetail-params">                                    <strong>参数项:</strong>                                    <ul>                                                                                    <li>                                                <code>                                                    actionName                                                </code> : String                                                <div class="sub-desc">                                                    The name of the action type	行为名称                                                </div>                                            </li>                                                                                    <li>                                                <code>                                                    options                                                </code> : Object                                                <div class="sub-desc">                                                    (optional) The options to pass to the action.  All of the config options listed                                                </div>                                            </li>                                                                            </ul>                                    <b>返回:</b>                                    <ul>                                        <li>                                            <code>                                                BasicForm                                            </code>                                            this                                        </li>                                    </ul>                                </div>                            </div>                        </div>                    </td>                    <td class="msource">                                                BasicForm                                            </td>                </tr>                            <tr class="method-row expandable">                    <td class="micon">                        <a class="exi" href="#expand">&nbsp;</a>                    </td>                    <td class="sig">                        <!--ClassName--><a id="submit-submit"></a>                        <b>submit</b>                        (                                                                                    <code>                                    Object options                                </code>                                                    )                                                    : BasicForm                                                <div class="mdesc">                            <div class="short">                                 做提交动作的简便方法。                             </div>                            <div class="long">                                 做提交动作的简便方法。                                <div class="mdetail-params">                                    <strong>参数项:</strong>                                    <ul>                                                                                    <li>                                                <code>                                                    options                                                </code> : Object                                                <div class="sub-desc">                                                    传递给动作对象的选项配制 (请见 <a href="###" onClick="alert('#doAction');">#doAction</a> )                                                </div>                                            </li>                                                                            </ul>                                    <b>返回:</b>                                    <ul>                                        <li>                                            <code>                                                BasicForm                                            </code>                                            this                                        </li>                                    </ul>                                </div>                            </div>                        </div>                    </td>                    <td class="msource">                                                BasicForm                                            </td>                </tr>                            <tr class="method-row expandable">                    <td class="micon">                        <a class="exi" href="#expand">&nbsp;</a>                    </td>                    <td class="sig">                        <!--ClassName--><a id="load-load"></a>                        <b>load</b>                        (                                                                                    <code>                                    Object options                                </code>                                                    )                                                    : BasicForm                                                <div class="mdesc">                            <div class="short">                                 做加载动作的简便方法。                             </div>                            <div class="long">                                 做加载动作的简便方法。                                <div class="mdetail-params">                                    <strong>参数项:</strong>                                    <ul>                                                                                    <li>                                                <code>                                                    options                                                </code> : Object                                                <div class="sub-desc">                                                    传递给动作对象的选项配制 (请见 {@link #doAction} )                                                </div>                                            </li>                                                                            </ul>                                    <b>返回:</b>                                    <ul>                                        <li>                                            <code>                                                BasicForm                                            </code>                                            this                                        </li>                                    </ul>                                </div>                            </div>                        </div>                    </td>                    <td class="msource">                                                BasicForm                                            </td>                </tr>                            <tr class="method-row expandable">                    <td class="micon">                        <a class="exi" href="#expand">&nbsp;</a>                    </td>                    <td class="sig">                        <!--ClassName--><a id="updateRecord-updateRecord"></a>                        <b>updateRecord</b>                        (                                                                                    <code>                                    Record record                                </code>                                                    )                                                    : BasicForm                        

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -