?? ext.form.form.html
字號:
</li> </ul> </div> </div> </div> </td> <td class="msource"> <!--如果這不是同個namespace下--><a ext:cls="Ext.form.BasicForm" ext:member="#method-isDirty" href="output/Ext.form.BasicForm.html#method-isDirty"> BasicForm </a> </td> </tr> <tr class="method-row expandable"> <td class="micon"> <a class="exi" href="#expand"> </a> </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"> <!--如果這不是同個namespace下--><a ext:cls="Ext.form.BasicForm" ext:member="#method-doAction2_1" href="output/Ext.form.BasicForm.html#method-doAction2_1"> BasicForm </a> </td> </tr> <tr class="method-row expandable"> <td class="micon"> <a class="exi" href="#expand"> </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"> <!--如果這不是同個namespace下--><a ext:cls="Ext.form.BasicForm" ext:member="#method-doAction" href="output/Ext.form.BasicForm.html#method-doAction"> BasicForm </a> </td> </tr> <tr class="method-row expandable"> <td class="micon"> <a class="exi" href="#expand"> </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 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"> <!--如果這不是同個namespace下--><a ext:cls="Ext.form.BasicForm" ext:member="#method-submit" href="output/Ext.form.BasicForm.html#method-submit"> BasicForm </a> </td> </tr> <tr class="method-row expandable"> <td class="micon"> <a class="exi" href="#expand"> </a> </td> <td class="sig"> <!--ClassName--><a id="updateRecord-updateRecord"></a> <b>updateRecord</b> ( <code> Record record </code> ) : BasicForm <div class="mdesc"> <div class="short"> Persists the values in this form i... </div> <div class="long"> Persists the values in this form into the passed Ext.data.Record object in a beginEdit/endEdit block. 表單內的元素數據考貝到所傳遞的Ext.data.Record對象中(beginEdit/endEdit塊中進行賦值操作)。 <div class="mdetail-params"> <strong>參數項:</strong> <ul> <li> <code> record </code> : Record <div class="sub-desc"> The record to edit </div> </li>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -