Alien-Web-ExtJS-V3
view release on metacpan or search on metacpan
share/docs/source/Field.html view on Meta::CPAN
</span> * @cfg {Mixed} value A value to initialize this field with (defaults to undefined).
*/
<span id='Ext-form-Field-cfg-name'> /**
</span> * @cfg {String} name The field's HTML name attribute (defaults to '').
* <b>Note</b>: this property must be set if this field is to be automatically included with
* {@link Ext.form.BasicForm#submit form submit()}.
*/
<span id='Ext-form-Field-cfg-cls'> /**
</span> * @cfg {String} cls A custom CSS class to apply to the field's underlying element (defaults to '').
*/
<span id='Ext-form-Field-cfg-invalidClass'> /**
</span> * @cfg {String} invalidClass The CSS class to use when marking a field invalid (defaults to 'x-form-invalid')
*/
invalidClass : 'x-form-invalid',
<span id='Ext-form-Field-cfg-invalidText'> /**
</span> * @cfg {String} invalidText The error text to use when marking a field invalid and no message is provided
* (defaults to 'The value in this field is invalid')
*/
invalidText : 'The value in this field is invalid',
<span id='Ext-form-Field-cfg-focusClass'> /**
</span> * @cfg {String} focusClass The CSS class to use when the field receives focus (defaults to 'x-form-focus')
*/
focusClass : 'x-form-focus',
<span id='Ext-form-Field-cfg-preventMark'> /**
</span> * @cfg {Boolean} preventMark
* <tt>true</tt> to disable {@link #markInvalid marking the field invalid}.
* Defaults to <tt>false</tt>.
*/
<span id='Ext-form-Field-cfg-validationEvent'> /**
</span> * @cfg {String/Boolean} validationEvent The event that should initiate field validation. Set to false to disable
automatic validation (defaults to 'keyup').
*/
validationEvent : 'keyup',
<span id='Ext-form-Field-cfg-validateOnBlur'> /**
</span> * @cfg {Boolean} validateOnBlur Whether the field should validate when it loses focus (defaults to true).
*/
validateOnBlur : true,
<span id='Ext-form-Field-cfg-validationDelay'> /**
</span> * @cfg {Number} validationDelay The length of time in milliseconds after user input begins until validation
* is initiated (defaults to 250)
*/
validationDelay : 250,
<span id='Ext-form-Field-cfg-autoCreate'> /**
</span> * @cfg {String/Object} autoCreate <p>A {@link Ext.DomHelper DomHelper} element spec, or true for a default
* element spec. Used to create the {@link Ext.Component#getEl Element} which will encapsulate this Component.
* See <tt>{@link Ext.Component#autoEl autoEl}</tt> for details. Defaults to:</p>
* <pre><code>{tag: 'input', type: 'text', size: '20', autocomplete: 'off'}</code></pre>
*/
defaultAutoCreate : {tag: 'input', type: 'text', size: '20', autocomplete: 'off'},
<span id='Ext-form-Field-cfg-fieldClass'> /**
</span> * @cfg {String} fieldClass The default CSS class for the field (defaults to 'x-form-field')
*/
fieldClass : 'x-form-field',
<span id='Ext-form-Field-cfg-msgTarget'> /**
</span> * @cfg {String} msgTarget <p>The location where the message text set through {@link #markInvalid} should display.
* Must be one of the following values:</p>
* <div class="mdetail-params"><ul>
* <li><code>qtip</code> Display a quick tip containing the message when the user hovers over the field. This is the default.
* <div class="subdesc"><b>{@link Ext.QuickTips#init Ext.QuickTips.init} must have been called for this setting to work.</b></div</li>
* <li><code>title</code> Display the message in a default browser title attribute popup.</li>
* <li><code>under</code> Add a block div beneath the field containing the error message.</li>
* <li><code>side</code> Add an error icon to the right of the field, displaying the message in a popup on hover.</li>
* <li><code>[element id]</code> Add the error message directly to the innerHTML of the specified element.</li>
* </ul></div>
*/
msgTarget : 'qtip',
<span id='Ext-form-Field-cfg-msgFx'> /**
</span> * @cfg {String} msgFx <b>Experimental</b> The effect used when displaying a validation message under the field
* (defaults to 'normal').
*/
msgFx : 'normal',
<span id='Ext-form-Field-cfg-readOnly'> /**
</span> * @cfg {Boolean} readOnly <tt>true</tt> to mark the field as readOnly in HTML
* (defaults to <tt>false</tt>).
* <br><p><b>Note</b>: this only sets the element's readOnly DOM attribute.
* Setting <code>readOnly=true</code>, for example, will not disable triggering a
* ComboBox or DateField; it gives you the option of forcing the user to choose
* via the trigger without typing in the text box. To hide the trigger use
* <code>{@link Ext.form.TriggerField#hideTrigger hideTrigger}</code>.</p>
*/
readOnly : false,
<span id='Ext-form-Field-cfg-disabled'> /**
</span> * @cfg {Boolean} disabled True to disable the field (defaults to false).
* <p>Be aware that conformant with the <a href="http://www.w3.org/TR/html401/interact/forms.html#h-17.12.1">HTML specification</a>,
* disabled Fields will not be {@link Ext.form.BasicForm#submit submitted}.</p>
*/
disabled : false,
<span id='Ext-form-Field-cfg-submitValue'> /**
</span> * @cfg {Boolean} submitValue False to clear the name attribute on the field so that it is not submitted during a form post.
* Defaults to <tt>true</tt>.
*/
submitValue: true,
<span id='Ext-form-Field-property-isFormField'> // private
</span> isFormField : true,
<span id='Ext-form-Field-property-msgDisplay'> // private
</span> msgDisplay: '',
<span id='Ext-form-Field-property-hasFocus'> // private
</span> hasFocus : false,
<span id='Ext-form-Field-method-initComponent'> // private
</span> initComponent : function(){
Ext.form.Field.superclass.initComponent.call(this);
this.addEvents(
<span id='Ext-form-Field-event-focus'> /**
</span> * @event focus
* Fires when this field receives input focus.
* @param {Ext.form.Field} this
*/
'focus',
<span id='Ext-form-Field-event-blur'> /**
</span> * @event blur
* Fires when this field loses input focus.
* @param {Ext.form.Field} this
*/
'blur',
<span id='Ext-form-Field-event-specialkey'> /**
</span> * @event specialkey
* Fires when any key related to navigation (arrows, tab, enter, esc, etc.) is pressed.
* To handle other keys see {@link Ext.Panel#keys} or {@link Ext.KeyMap}.
( run in 2.864 seconds using v1.01-cache-2.11-cpan-364913b4093 )