ext.form.textfield.html.svn-base
来自「PHP 知识管理系统(基于树结构的知识管理系统), 英文原版的PHP源码。」· SVN-BASE 代码 · 共 957 行 · 第 1/5 页
SVN-BASE
957 行
<td class="micon"><a class="exi" href="#expand"> </a></td>
<td class="sig">
<a id="Ext.form.TextField-stateId"></a>
<b>stateId</b> : String <div class="mdesc">
<div class="short">The unique id for this component to use for state management purposes (defaults to the component id). See stateful fo...</div>
<div class="long">
The unique id for this component to use for state management purposes (defaults to the component id). <p>See <a ext:cls="Ext.Component" ext:member="stateful" href="output/Ext.Component.html#stateful">stateful</a> for an explanation of saving and restoring Component state.</p> </div>
</div>
</td>
<td class="msource"><a ext:cls="Ext.Component" ext:member="#stateId" href="output/Ext.Component.html#stateId">Component</a></td>
</tr>
<tr class="config-row inherited alt expandable">
<td class="micon"><a class="exi" href="#expand"> </a></td>
<td class="sig">
<a id="Ext.form.TextField-stateful"></a>
<b>stateful</b> : Boolean <div class="mdesc">
<div class="short">A flag which causes the Component to attempt to restore the state of internal properties from a saved state on startu...</div>
<div class="long">
A flag which causes the Component to attempt to restore the state of internal properties from a saved state on startup.<p> For state saving to work, the state manager's provider must have been set to an implementation of <a ext:cls="Ext.state.Provider" href="output/Ext.state.Provider.html">Ext.state.Provider</a> which overrides the <a ext:cls="Ext.state.Provider" ext:member="set" href="output/Ext.state.Provider.html#set">set</a> and <a ext:cls="Ext.state.Provider" ext:member="get" href="output/Ext.state.Provider.html#get">get</a> methods to save and recall name/value pairs. A built-in implementation, <a ext:cls="Ext.state.CookieProvider" href="output/Ext.state.CookieProvider.html">Ext.state.CookieProvider</a> is available.</p> <p>To set the state provider for the current page:</p> <pre><code>Ext.state.Manager.setProvider(<b>new</b> Ext.state.CookieProvider());</code></pre> <p>Components attempt to save state when one of the events listed in the <a ext:cls="Ext.Component" ext:member="stateEvents" href="output/Ext.Component.html#stateEvents">stateEvents</a> configuration fires.</p> <p>You can perform extra processing on state save and restore by attaching handlers to the <a ext:cls="Ext.Component" ext:member="beforestaterestore" href="output/Ext.Component.html#beforestaterestore">beforestaterestore</a>, <a ext:cls="staterestore" href="output/staterestore.html">staterestore</a>, <a ext:cls="beforestatesave" href="output/beforestatesave.html">beforestatesave</a> and <a ext:cls="statesave" href="output/statesave.html">statesave</a> events</p> </div>
</div>
</td>
<td class="msource"><a ext:cls="Ext.Component" ext:member="#stateful" href="output/Ext.Component.html#stateful">Component</a></td>
</tr>
<tr class="config-row inherited expandable">
<td class="micon"><a class="exi" href="#expand"> </a></td>
<td class="sig">
<a id="Ext.form.TextField-style"></a>
<b>style</b> : String <div class="mdesc">
<div class="short">A custom style specification to be applied to this component's Element. Should be a valid argument to Ext.Element.app...</div>
<div class="long">
A custom style specification to be applied to this component's Element. Should be a valid argument to <a ext:cls="Ext.Element" ext:member="applyStyles" href="output/Ext.Element.html#applyStyles">Ext.Element.applyStyles</a>. </div>
</div>
</td>
<td class="msource"><a ext:cls="Ext.Component" ext:member="#style" href="output/Ext.Component.html#style">Component</a></td>
</tr>
<tr class="config-row inherited alt expandable">
<td class="micon"><a class="exi" href="#expand"> </a></td>
<td class="sig">
<a id="Ext.form.TextField-tabIndex"></a>
<b>tabIndex</b> : Number <div class="mdesc">
<div class="short">The tabIndex for this field. Note this only applies to fields that are rendered, not those which are built via applyT...</div>
<div class="long">
The tabIndex for this field. Note this only applies to fields that are rendered, not those which are built via applyTo (defaults to undefined). </div>
</div>
</td>
<td class="msource"><a ext:cls="Ext.form.Field" ext:member="#tabIndex" href="output/Ext.form.Field.html#tabIndex">Field</a></td>
</tr>
<tr class="config-row inherited">
<td class="micon"><a class="exi" href="#expand"> </a></td>
<td class="sig">
<a id="Ext.form.TextField-validateOnBlur"></a>
<b>validateOnBlur</b> : Boolean <div class="mdesc">
Whether the field should validate when it loses focus (defaults to true). </div>
</td>
<td class="msource"><a ext:cls="Ext.form.Field" ext:member="#validateOnBlur" href="output/Ext.form.Field.html#validateOnBlur">Field</a></td>
</tr>
<tr class="config-row inherited alt">
<td class="micon"><a class="exi" href="#expand"> </a></td>
<td class="sig">
<a id="Ext.form.TextField-validationDelay"></a>
<b>validationDelay</b> : Number <div class="mdesc">
The length of time in milliseconds after user input begins until validation is initiated (defaults to 250) </div>
</td>
<td class="msource"><a ext:cls="Ext.form.Field" ext:member="#validationDelay" href="output/Ext.form.Field.html#validationDelay">Field</a></td>
</tr>
<tr class="config-row inherited">
<td class="micon"><a class="exi" href="#expand"> </a></td>
<td class="sig">
<a id="Ext.form.TextField-validationEvent"></a>
<b>validationEvent</b> : String/Boolean <div class="mdesc">
The event that should initiate field validation. Set to false to disable automatic validation (defaults to "keyup"). </div>
</td>
<td class="msource"><a ext:cls="Ext.form.Field" ext:member="#validationEvent" href="output/Ext.form.Field.html#validationEvent">Field</a></td>
</tr>
<tr class="config-row alt expandable">
<td class="micon"><a class="exi" href="#expand"> </a></td>
<td class="sig">
<a id="Ext.form.TextField-validator"></a>
<b>validator</b> : Function <div class="mdesc">
<div class="short">A custom validation function to be called during field validation (defaults to null). If available, this function wil...</div>
<div class="long">
A custom validation function to be called during field validation (defaults to null). If available, this function will be called only after the basic validators all return true, and will be passed the current field value and expected to return boolean true if the value is valid or a string error message if invalid. </div>
</div>
</td>
<td class="msource">TextField</td>
</tr>
<tr class="config-row inherited">
<td class="micon"><a class="exi" href="#expand"> </a></td>
<td class="sig">
<a id="Ext.form.TextField-value"></a>
<b>value</b> : Mixed <div class="mdesc">
A value to initialize this field with (defaults to undefined). </div>
</td>
<td class="msource"><a ext:cls="Ext.form.Field" ext:member="#value" href="output/Ext.form.Field.html#value">Field</a></td>
</tr>
<tr class="config-row alt">
<td class="micon"><a class="exi" href="#expand"> </a></td>
<td class="sig">
<a id="Ext.form.TextField-vtype"></a>
<b>vtype</b> : String <div class="mdesc">
A validation type name as defined in <a ext:cls="Ext.form.VTypes" href="output/Ext.form.VTypes.html">Ext.form.VTypes</a> (defaults to null) </div>
</td>
<td class="msource">TextField</td>
</tr>
<tr class="config-row expandable">
<td class="micon"><a class="exi" href="#expand"> </a></td>
<td class="sig">
<a id="Ext.form.TextField-vtypeText"></a>
<b>vtypeText</b> : String <div class="mdesc">
<div class="short">A custom error message to display in place of the default message provided for the vtype currently set for this field...</div>
<div class="long">
A custom error message to display in place of the default message provided for the <a ext:cls="Ext.form.TextField" ext:member="vtype" href="output/Ext.form.TextField.html#vtype">vtype</a> currently set for this field (defaults to ''). Only applies if vtype is set, else ignored. </div>
</div>
</td>
<td class="msource">TextField</td>
</tr>
<tr class="config-row inherited alt">
<td class="micon"><a class="exi" href="#expand"> </a></td>
<td class="sig">
<a id="Ext.form.TextField-width"></a>
<b>width</b> : Number <div class="mdesc">
The width of this component in pixels (defaults to auto). </div>
</td>
<td class="msource"><a ext:cls="Ext.BoxComponent" ext:member="#width" href="output/Ext.BoxComponent.html#width">BoxComponent</a></td>
</tr>
<tr class="config-row inherited">
<td class="micon"><a class="exi" href="#expand"> </a></td>
<td class="sig">
<a id="Ext.form.TextField-x"></a>
<b>x</b> : Number <div class="mdesc">
The local x (left) coordinate for this component if contained within a positioning container. </div>
</td>
<td class="msource"><a ext:cls="Ext.BoxComponent" ext:member="#x" href="output/Ext.BoxComponent.html#x">BoxComponent</a></td>
</tr>
<tr class="config-row inherited alt expandable">
<td class="micon"><a class="exi" href="#expand"> </a></td>
<td class="sig">
<a id="Ext.form.TextField-xtype"></a>
<b>xtype</b> : String <div class="mdesc">
<div class="short">The registered xtype to create. This config option is not used when passing a config object into a constructor. This ...</div>
<div class="long">
The registered xtype to create. This config option is not used when passing a config object into a constructor. This config option is used only when lazy instantiation is being used, and a child item of a Container is being specified not as a fully instantiated Component, but as a <i>Component config object</i>. The xtype will be looked up at render time up to determine what type of child Component to create.<br><br> The predefined xtypes are listed <a ext:cls="Ext.Component" href="output/Ext.Component.html">here</a>. <br><br> If you subclass Components to create your own Components, you may register them using <a ext:cls="Ext.ComponentMgr" ext:member="registerType" href="output/Ext.ComponentMgr.html#registerType">Ext.ComponentMgr.registerType</a> in order to be able to take advantage of lazy instantiation and rendering. </div>
</div>
</td>
<td class="msource"><a ext:cls="Ext.Component" ext:member="#xtype" href="output/Ext.Component.html#xtype">Component</a></td>
</tr>
<tr class="config-row inherited">
<td class="micon"><a class="exi" href="#expand"> </a></td>
<td class="sig">
<a id="Ext.form.TextField-y"></a>
<b>y</b> : Number <div class="mdesc">
The local y (top) coordinate for this component if contained within a positioning container. </div>
</td>
<td class="msource"><a ext:cls="Ext.BoxComponent" ext:member="#y" href="output/Ext.BoxComponent.html#y">BoxComponent</a></td>
</tr>
</table> <a id="Ext.form.TextField-props"></a> <h2>Public Properties</h2> <table cellspacing="0" class="member-table"> <tr> <th class="sig-header" colspan="2">Property</th> <th class="msource-header">Defined By</th> </tr> <tr class="property-row inherited">
<td class="micon"><a class="exi" href="#expand"> </a></td>
<td class="sig">
<a id="Ext.form.TextField-disabled"></a>
<b>disabled</b> : Boolean <div class="mdesc">
True if this component is disabled. Read-only. </div>
</td>
<td class="msource"><a ext:cls="Ext.Component" ext:member="#disabled" href="output/Ext.Component.html#disabled">Component</a></td>
</tr>
<tr class="property-row inherited alt">
<td class="micon"><a class="exi" href="#expand"> </a></td>
<td class="sig">
<a id="Ext.form.TextField-hidden"></a>
<b>hidden</b> : Boolean <div class="mdesc">
True if this component is hidden. Read-only. </div>
</td>
<td class="msource"><a ext:cls="Ext.Component" ext:member="#hidden" href="output/Ext.Component.html#hidden">Component</a></td>
</tr>
<tr class="property-row inherited">
<td class="micon"><a class="exi" href="#expand"> </a></td>
<td class="sig">
<a id="Ext.form.TextField-initialConfig"></a>
<b>initialConfig</b> : Object <div class="mdesc">
This Component's initial configuration specification. Read-only. </div>
</td>
<td class="msource"><a ext:cls="Ext.Component" ext:member="#initialConfig" href="output/Ext.Component.html#initialConfig">Component</a></td>
</tr>
<tr class="property-row inherited alt expandable">
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?