class type t =Inheritsobject
..end
method inputEl : Ext_dom_Element.t Js.t Js.prop
The input Element for this Field. Only available after the field has been rendered.
method maskOnDisable : bool Js.t Js.prop
This is an internal flag that you use when creating custom components. By default this is set to true
which means
that every component gets a mask when it's disabled. Components like FieldContainer, FieldSet, Field, Button, Tab
override this property to false
since they want to implement custom disable logic.
Defaults to: false
method clearInvalid : unit Js.meth
Clear any invalid styles/messages for this field.
Note: this method does not cause the Field's validate or isValid methods to return true
if the value does not pass validation. So simply clearing a field's errors will not necessarily allow
submission of forms submitted with the Ext.form.action.Submit.clientValidation option set.
method doComponentLayout_container : 'a. (#Ext_container_Container.t as 'a) Js.t Js.meth
This method needs to be called whenever you change something on this component that requires the Component's layout to be recalculated.
Returns:
#Ext_container_Container.t Js.t
this
method getRawValue : Js.js_string Js.t Js.meth
Returns the raw value of the field, without performing any normalization, conversion, or validation. To get a normalized and converted value see getValue.
Returns:
Js.js_string Js.t
value The raw String value of the field
method getSubTplData : 'b. 'b Js.t Js.meth
Creates and returns the data object to be used when rendering the fieldSubTpl.
Returns:
_ Js.t
The template data
method getSubmitData : 'c. 'c Js.t Js.meth
private override to use getSubmitValue() as a convenience
Returns the parameter(s) that would be included in a standard form submit for this field. Typically this will be an object with a single name-value pair, the name being this field's name and the value being its current stringified value. More advanced field implementations may return more than one name-value pair.
Note that the values returned from this method are not guaranteed to have been successfully validated.
Returns:
_ Js.t
A mapping of submit parameter names to values; each value should be a string, or an array of strings if that particular name has multiple values. It can also return null if there are no parameters to be submitted.
method getSubmitValue : Js.js_string Js.t Js.meth
Returns the value that would be included in a standard form submit for this field. This will be combined with the field's name to form a name=value pair in the submitted parameters. If an empty string is returned then just the name= will be submitted; if null is returned then nothing will be submitted.
Note that the value returned will have been processed but may or may not have been successfully validated.
Returns:
Js.js_string Js.t
The value to be submitted, or null.
method getValue : 'd. 'd Js.t Js.meth
Returns the current data value of the field. The type of value returned is particular to the type of the particular field (e.g. a Date object for Ext.form.field.Date), as the result of calling rawToValue on the field's processed String value. To return the raw String value, see getRawValue.
Returns:
_ Js.t
value The field value
method initComponent : unit Js.meth
private
The initComponent template method is an important initialization step for a Component. It is intended to be implemented by each subclass of Ext.Component to provide any needed constructor logic. The initComponent method of the class being created is called first, with each initComponent method up the hierarchy to Ext.Component being called thereafter. This makes it easy to implement and, if needed, override the constructor logic of the Component at any step in the hierarchy.
The initComponent method must contain a call to callParent in order to ensure that the parent class' initComponent method is also called.
All config options passed to the constructor are applied to this
before initComponent is called,
so you can simply access them with this.someOption
.
The following example demonstrates using a dynamic string for the text of a button at the time of instantiation of the class.
Ext.define('DynamicButtonText', {
extend: 'Ext.button.Button',
initComponent: function() {
this.text = new Date();
this.renderTo = Ext.getBody();
this.callParent();
}
});
Ext.onReady(function() {
Ext.create('DynamicButtonText');
});
method initEvents : unit Js.meth
private
Initialize any events on this component
method initRenderData : 'e. 'e Js.t Js.meth
Initialized the renderData to be used when rendering the renderTpl.
Returns:
_ Js.t
Object with keys and values that are going to be applied to the renderTpl
method isFileUpload : bool Js.t Js.meth
Returns whether this Field is a file upload field; if it returns true, forms will use special techniques for submitting the form via AJAX. See Ext.form.Basic.hasUpload for details. If this returns true, the extractFileInput method must also be implemented to return the corresponding file input element.
method isValid : bool Js.t Js.meth
Returns whether or not the field value is currently valid by validating the processed raw value of the field. Note: disabled fields are always treated as valid.
Returns:
bool Js.t
True if the value is valid, else false
method markInvalid : 'f. 'f Js.t -> unit Js.meth
Display one or more error messages associated with this field, using msgTarget to determine how to display the messages and applying invalidCls to the field's UI element.
Note: this method does not cause the Field's validate or isValid methods to return false
if the value does pass validation. So simply marking a Field as invalid will not prevent submission of forms
submitted with the Ext.form.action.Submit.clientValidation option set.
Parameters:
_ Js.t
The validation message(s) to display.
method onDisable : unit Js.meth
private
Allows addition of behavior to the disable operation.
After calling the superclass's onDisable
, the Component will be disabled.
method onEnable : unit Js.meth
private
Allows addition of behavior to the enable operation.
After calling the superclass's onEnable
, the Component will be enabled.
method onRender : Ext_dom_Element.t Js.t -> Js.number Js.t -> unit Js.meth
private
Template method called when this Component's DOM structure is created.
At this point, this Component's (and all descendants') DOM structure exists but it has not been layed out (positioned and sized).
Subclasses which override this to gain access to the structure at render time should call the parent class's method before attempting to access any child elements of the Component.
Parameters:
Ext_dom_Element.t Js.t
The parent Element in which this Component's encapsulating element is contained.
Js.number Js.t
The index within the parent Container's child collection of this Component.
method processRawValue : 'g 'h. 'g Js.t -> 'h Js.t Js.meth
Performs any necessary manipulation of a raw field value to prepare it for conversion and/or validation, for instance stripping out ignored characters. In the base implementation it does nothing; individual subclasses may override this as needed.
Parameters:
_ Js.t
The unprocessed string value
Returns:
_ Js.t
The processed string value
method rawToValue : 'i 'j. 'i Js.t -> 'j Js.t Js.meth
Converts a raw input field value into a mixed-type value that is suitable for this particular field type. This allows controlling the normalization and conversion of user-entered values into field-type-appropriate values, e.g. a Date object for Ext.form.field.Date, and is invoked by getValue.
It is up to individual implementations to decide how to handle raw values that cannot be successfully converted to the desired object type.
See valueToRaw for the opposite conversion.
The base implementation does no conversion, returning the raw value untouched.
Parameters:
_ Js.t
Returns:
_ Js.t
The converted value.
method setFieldStyle : 'k. 'k Js.t -> unit Js.meth
Set the CSS style of the field input element.
Parameters:
_ Js.t
The style(s) to apply. Should be a valid argument to Ext.Element.applyStyles.
method setRawValue : 'l 'm. 'l Js.t -> 'm Js.t Js.meth
Sets the field's raw value directly, bypassing value conversion, change detection, and validation. To set the value with these additional inspections see setValue.
Parameters:
_ Js.t
The value to set
Returns:
_ Js.t
value The field value that is set
method setReadOnly : bool Js.t -> unit Js.meth
Sets the read only state of this field.
Parameters:
bool Js.t
Whether the field should be read only.
method setValue : 'n.
'n Js.t ->
(< _isLayoutRoot : bool Js.t Js.prop; addChildEls : unit Js.meth;
addCls : 'q. 'q Js.t -> 'p Js.t Js.meth;
addClsWithUI : 'r 's. 'r Js.t -> 's Js.t -> unit Js.meth;
addEvents : 't. 't Js.t -> unit Js.meth;
addListener : 'u 'v 'w 'x 'y.
'u Js.t ->
'v Js.callback Js.optdef ->
'w Js.t Js.optdef ->
'x Js.t Js.optdef -> 'y Js.t Js.meth;
addManagedListener : 'z 'a1 'b1 'c1 'd1 'e1.
'z Js.t ->
'a1 Js.t ->
'b1 Js.callback Js.optdef ->
'c1 Js.t Js.optdef ->
'd1 Js.t Js.optdef -> 'e1 Js.t Js.meth;
addPropertyToState : 'f1.
'f1 Js.t ->
Js.js_string Js.t ->
Js.js_string Js.t Js.optdef -> bool Js.t Js.meth;
addStateEvents : 'g1. 'g1 Js.t -> unit Js.meth;
addUIClsToElement : Js.js_string Js.t -> unit Js.meth;
afterComponentLayout : 'h1 'i1.
Js.number Js.t ->
Js.number Js.t ->
'h1 Js.t -> 'i1 Js.t -> unit Js.meth;
afterHide : 'j1 'k1.
'j1 Js.callback Js.optdef ->
'k1 Js.t Js.optdef -> unit Js.meth;
afterRender : unit Js.meth;
afterSetPosition : Js.number Js.t -> Js.number Js.t -> unit Js.meth;
afterShow : 'l1 'm1 'n1.
'l1 Js.t Js.optdef ->
'm1 Js.callback Js.optdef ->
'n1 Js.t Js.optdef -> unit Js.meth;
alignTo : 'o1 'p1.
'o1 Js.t ->
Js.js_string Js.t Js.optdef ->
Js.number Js.t Js.js_array Js.t Js.optdef ->
'p1 Js.t Js.optdef -> 'p Js.t Js.meth;
anchorTo : 'q1 'r1 's1 't1.
'q1 Js.t ->
Js.js_string Js.t Js.optdef ->
Js.number Js.t Js.js_array Js.t Js.optdef ->
'r1 Js.t Js.optdef ->
's1 Js.t Js.optdef ->
't1 Js.callback Js.optdef -> 'p Js.t Js.meth;
animate : 'u1 'v1. 'u1 Js.t -> 'v1 Js.t Js.meth;
applyState : 'w1. 'w1 Js.t -> unit Js.meth;
batchChanges : 'x1. 'x1 Js.t -> unit Js.meth;
beforeBlur : Ext_EventObject.t Js.t -> unit Js.meth;
beforeComponentLayout : Js.number Js.t -> Js.number Js.t -> unit Js.meth;
beforeDestroy : unit Js.meth;
beforeFocus : Ext_EventObject.t Js.t -> unit Js.meth;
beforeLayout : unit Js.meth; beforeReset : unit Js.meth;
beforeShow : unit Js.meth; bodyEl : Ext_dom_Element.t Js.t Js.prop;
bubble : 'y1 'z1 'a2.
'y1 Js.callback ->
'z1 Js.t Js.optdef ->
'a2 Js.js_array Js.t Js.optdef -> 'p Js.t Js.meth;
calculateConstrainedPosition : 'b2.
'b2 Js.t Js.optdef ->
Js.number Js.t Js.js_array Js.t
Js.optdef ->
bool Js.t Js.optdef ->
Js.number Js.t Js.js_array Js.t
Js.optdef ->
Js.number Js.t Js.js_array Js.t Js.meth;
callParent : 'c2 'd2. 'c2 Js.t -> 'd2 Js.t Js.meth;
callSuper : 'e2 'f2. 'e2 Js.t -> 'f2 Js.t Js.meth;
cancelFocus : unit Js.meth; center : 'g2. 'g2 Js.t Js.meth;
checkChange : unit Js.meth; checkDirty : unit Js.meth;
clearInvalid : unit Js.meth; clearListeners : unit Js.meth;
clearManagedListeners : unit Js.meth;
cloneConfig : 'h2. 'h2 Js.t -> 'p Js.t Js.meth;
contentPaddingProperty : Js.js_string Js.t Js.prop;
destroy : unit Js.meth; disable : bool Js.t Js.optdef -> unit Js.meth;
doAutoRender : unit Js.meth; doComponentLayout : 'i2. 'i2 Js.t Js.meth;
doComponentLayout_container : 'a.
(#Ext_container_Container.t as 'a) Js.t
Js.meth;
doConstrain : 'j2. 'j2 Js.t Js.optdef -> unit Js.meth;
draggable : bool Js.t Js.readonly_prop;
enable : bool Js.t Js.optdef -> unit Js.meth;
enableBubble : 'k2. 'k2 Js.t -> unit Js.meth;
ensureAttachedToBody : bool Js.t Js.optdef -> unit Js.meth;
errorEl : Ext_dom_Element.t Js.t Js.prop;
extractFileInput : Dom_html.element Js.t Js.meth;
findParentBy : 'l2 'm2. 'l2 Js.callback -> 'm2 Js.t Js.meth;
findParentByType : 'n2 'o2. 'n2 Js.t -> 'o2 Js.t Js.meth;
findPlugin : Js.js_string Js.t -> Ext_AbstractPlugin.t Js.t Js.meth;
fireEvent : 'p2. Js.js_string Js.t -> 'p2 Js.t -> bool Js.t Js.meth;
fireEventArgs : 'q2.
Js.js_string Js.t ->
'q2 Js.t Js.js_array Js.t -> bool Js.t Js.meth;
floatParent : 'r2. 'r2 Js.t Js.readonly_prop;
focus : 's2 't2 'u2.
bool Js.t Js.optdef ->
's2 Js.t Js.optdef ->
't2 Js.callback Js.optdef ->
'u2 Js.callback Js.optdef -> 'p Js.t Js.meth;
frameSize : 'v2. 'v2 Js.t Js.readonly_prop;
getActiveAnimation : 'w2. 'w2 Js.t Js.meth;
getActiveError : Js.js_string Js.t Js.meth;
getActiveErrors : Js.js_string Js.t Js.js_array Js.t Js.meth;
getAlignToXY : 'x2.
'x2 Js.t ->
Js.js_string Js.t Js.optdef ->
Js.number Js.t Js.js_array Js.t Js.optdef ->
Js.number Js.t Js.js_array Js.t Js.meth;
getAnchorXY : 'y2.
Js.js_string Js.t Js.optdef ->
bool Js.t Js.optdef ->
'y2 Js.t Js.optdef ->
Js.number Js.t Js.js_array Js.t Js.meth;
getBox : 'z2.
bool Js.t Js.optdef ->
bool Js.t Js.optdef -> 'z2 Js.t Js.meth;
getBubbleTarget : 'a3. 'a3 Js.t Js.meth;
getConstrainVector : 'b3 'c3.
'b3 Js.t Js.optdef ->
Js.number Js.t Js.js_array Js.t Js.optdef ->
Js.number Js.t Js.js_array Js.t Js.optdef ->
'c3 Js.t Js.meth;
getEl : Ext_dom_Element.t Js.t Js.meth;
getErrors : 'd3. 'd3 Js.t -> Js.js_string Js.t Js.js_array Js.t Js.meth;
getFieldLabel : Js.js_string Js.t Js.meth;
getHeight : Js.number Js.t Js.meth; getId : Js.js_string Js.t Js.meth;
getInitialConfig : 'e3. Js.js_string Js.t Js.optdef -> 'e3 Js.t Js.meth;
getInputId : Js.js_string Js.t Js.meth;
getInsertPosition : 'f3. 'f3 Js.t -> Dom_html.element Js.t Js.meth;
getItemId : Js.js_string Js.t Js.meth;
getLabelWidth : Js.number Js.t Js.meth;
getLabelableRenderData : 'g3. 'g3 Js.t Js.meth;
getLoader : Ext_ComponentLoader.t Js.t Js.meth;
getLocalX : Js.number Js.t Js.meth;
getLocalXY : Js.number Js.t Js.js_array Js.t Js.meth;
getLocalY : Js.number Js.t Js.meth;
getModelData : 'h3. 'h3 Js.t Js.meth;
getName : Js.js_string Js.t Js.meth;
getOffsetsTo : 'i3. 'i3 Js.t -> Js.number Js.t Js.js_array Js.t Js.meth;
getPlugin : Js.js_string Js.t -> Ext_AbstractPlugin.t Js.t Js.meth;
getPosition : bool Js.t Js.optdef ->
Js.number Js.t Js.js_array Js.t Js.meth;
getRawValue : Js.js_string Js.t Js.meth;
getRegion : Ext_util_Region.t Js.t Js.meth;
getSize : 'j3. 'j3 Js.t Js.meth;
getSizeModel : 'k3 'l3. 'k3 Js.t -> 'l3 Js.t Js.meth;
getState : 'm3. 'm3 Js.t Js.meth; getSubTplData : 'b. 'b Js.t Js.meth;
getSubTplMarkup : Js.js_string Js.t Js.meth;
getSubmitData : 'c. 'c Js.t Js.meth;
getSubmitValue : Js.js_string Js.t Js.meth;
getValue : 'd. 'd Js.t Js.meth;
getViewRegion : Ext_util_Region.t Js.t Js.meth;
getWidth : Js.number Js.t Js.meth; getX : Js.number Js.t Js.meth;
getXType : Js.js_string Js.t Js.meth;
getXTypes : Js.js_string Js.t Js.meth;
getXY : Js.number Js.t Js.js_array Js.t Js.meth;
getY : Js.number Js.t Js.meth; hasActiveError : bool Js.t Js.meth;
hasCls : Js.js_string Js.t -> bool Js.t Js.meth;
hasListener : Js.js_string Js.t -> bool Js.t Js.meth;
hasListeners : 'n3. 'n3 Js.t Js.readonly_prop;
hasUICls : Js.js_string Js.t -> unit Js.meth;
hasVisibleLabel : bool Js.t Js.meth;
hide : 'o3 'p3 'q3.
'o3 Js.t Js.optdef ->
'p3 Js.callback Js.optdef ->
'q3 Js.t Js.optdef -> 'p Js.t Js.meth;
initComponent : unit Js.meth;
initConfig : 'r3. 'r3 Js.t -> 'p Js.t Js.meth;
initEvents : unit Js.meth; initField : unit Js.meth;
initLabelable : unit Js.meth; initRenderData : 'e. 'e Js.t Js.meth;
initValue : unit Js.meth; inputEl : Ext_dom_Element.t Js.t Js.prop;
is : Js.js_string Js.t -> bool Js.t Js.meth;
isComponent : bool Js.t Js.prop;
isDescendantOf : 's3. 's3 Js.t -> bool Js.t Js.meth;
isDirty : bool Js.t Js.meth; isDisabled : bool Js.t Js.meth;
isDraggable : bool Js.t Js.meth; isDroppable : bool Js.t Js.meth;
isEqual : 't3 'u3. 't3 Js.t -> 'u3 Js.t -> bool Js.t Js.meth;
isFieldLabelable : bool Js.t Js.prop; isFileUpload : bool Js.t Js.meth;
isFloating : bool Js.t Js.meth; isFormField : bool Js.t Js.prop;
isHidden : bool Js.t Js.meth; isLayoutRoot : unit Js.meth;
isLayoutSuspended : bool Js.t Js.meth; isObservable : bool Js.t Js.prop;
isValid : bool Js.t Js.meth;
isVisible : bool Js.t Js.optdef -> bool Js.t Js.meth;
isXType : Js.js_string Js.t -> bool Js.t Js.optdef -> bool Js.t Js.meth;
labelCell : Ext_dom_Element.t Js.t Js.prop;
labelEl : Ext_dom_Element.t Js.t Js.prop;
markInvalid : 'f. 'f Js.t -> unit Js.meth;
maskOnDisable : bool Js.t Js.prop;
mon : 'v3 'w3 'x3 'y3 'z3 'a4.
'v3 Js.t ->
'w3 Js.t ->
'x3 Js.callback Js.optdef ->
'y3 Js.t Js.optdef -> 'z3 Js.t Js.optdef -> 'a4 Js.t Js.meth;
move : 'b4.
Js.js_string Js.t ->
Js.number Js.t -> 'b4 Js.t Js.optdef -> unit Js.meth;
mun : 'c4 'd4 'e4 'f4.
'c4 Js.t ->
'd4 Js.t ->
'e4 Js.callback Js.optdef -> 'f4 Js.t Js.optdef -> unit Js.meth;
nextNode : Js.js_string Js.t Js.optdef -> 'p Js.t Js.meth;
nextSibling : Js.js_string Js.t Js.optdef -> 'p Js.t Js.meth;
on : 'g4 'h4 'i4 'j4 'k4.
'g4 Js.t ->
'h4 Js.callback Js.optdef ->
'i4 Js.t Js.optdef -> 'j4 Js.t Js.optdef -> 'k4 Js.t Js.meth;
onAdded : 'l4. 'l4 Js.t -> Js.number Js.t -> unit Js.meth;
onDestroy : unit Js.meth; onDisable : unit Js.meth;
onEnable : unit Js.meth;
onHide : 'm4 'n4 'o4.
'm4 Js.t Js.optdef ->
'n4 Js.callback Js.optdef ->
'o4 Js.t Js.optdef -> unit Js.meth;
onPosition : Js.number Js.t -> Js.number Js.t -> unit Js.meth;
onRemoved : bool Js.t -> unit Js.meth;
onRender : Ext_dom_Element.t Js.t -> Js.number Js.t -> unit Js.meth;
onResize : 'p4 'q4 'r4 's4.
'p4 Js.t ->
'q4 Js.t -> 'r4 Js.t -> 's4 Js.t -> unit Js.meth;
onShow : 't4 'u4 'v4.
't4 Js.t Js.optdef ->
'u4 Js.callback Js.optdef ->
'v4 Js.t Js.optdef -> unit Js.meth;
onShowComplete : 'w4 'x4.
'w4 Js.callback Js.optdef ->
'x4 Js.t Js.optdef -> unit Js.meth;
originalValue : 'y4. 'y4 Js.t Js.prop;
ownerCt : 'z4. 'z4 Js.t Js.readonly_prop;
postBlur : Ext_EventObject.t Js.t -> unit Js.meth;
previousNode : Js.js_string Js.t Js.optdef -> 'p Js.t Js.meth;
previousSibling : Js.js_string Js.t Js.optdef -> 'p Js.t Js.meth;
processRawValue : 'g 'h. 'g Js.t -> 'h Js.t Js.meth;
rawToValue : 'i 'j. 'i Js.t -> 'j Js.t Js.meth;
registerFloatingItem : 'a5. 'a5 Js.t -> unit Js.meth;
relayEvents : 'b5 'c5.
'b5 Js.t ->
Js.js_string Js.t Js.js_array Js.t ->
Js.js_string Js.t Js.optdef -> 'c5 Js.t Js.meth;
removeAnchor : 'p Js.t Js.meth;
removeChildEls : 'd5. 'd5 Js.callback -> unit Js.meth;
removeCls : 'e5. 'e5 Js.t -> 'p Js.t Js.meth;
removeClsWithUI : 'f5. 'f5 Js.t -> unit Js.meth;
removeListener : 'g5 'h5.
Js.js_string Js.t ->
'g5 Js.callback -> 'h5 Js.t Js.optdef -> unit Js.meth;
removeManagedListener : 'i5 'j5 'k5 'l5.
'i5 Js.t ->
'j5 Js.t ->
'k5 Js.callback Js.optdef ->
'l5 Js.t Js.optdef -> unit Js.meth;
removeUIClsFromElement : Js.js_string Js.t -> unit Js.meth;
render : 'm5 'n5.
'm5 Js.t Js.optdef -> 'n5 Js.t Js.optdef -> unit Js.meth;
rendered : bool Js.t Js.readonly_prop; reset : unit Js.meth;
resetOriginalValue : unit Js.meth;
resumeEvent : Js.js_string Js.t -> unit Js.meth;
resumeEvents : unit Js.meth;
savePropToState : 'o5.
Js.js_string Js.t ->
'o5 Js.t ->
Js.js_string Js.t Js.optdef -> bool Js.t Js.meth;
savePropsToState : 'p5 'q5 'r5. 'p5 Js.t -> 'q5 Js.t -> 'r5 Js.t Js.meth;
saveState : unit Js.meth;
scrollBy : 's5 't5 'u5. 's5 Js.t -> 't5 Js.t -> 'u5 Js.t -> unit Js.meth;
scrollFlags : 'v5. 'v5 Js.t Js.readonly_prop;
self : Ext_Class.t Js.t Js.prop; sequenceFx : 'w5. 'w5 Js.t Js.meth;
setActive : 'x5.
bool Js.t Js.optdef -> 'x5 Js.t Js.optdef -> unit Js.meth;
setActiveError : Js.js_string Js.t -> unit Js.meth;
setActiveErrors : Js.js_string Js.t Js.js_array Js.t -> unit Js.meth;
setAutoScroll : bool Js.t -> 'p Js.t Js.meth;
setBorder : 'y5. 'y5 Js.t -> unit Js.meth;
setBorderRegion : Js.js_string Js.t -> Js.js_string Js.t Js.meth;
setBox : 'z5 'a6. 'z5 Js.t -> 'a6 Js.t Js.optdef -> 'p Js.t Js.meth;
setDisabled : bool Js.t -> unit Js.meth;
setDocked : 'b6. 'b6 Js.t -> bool Js.t Js.optdef -> 'p Js.t Js.meth;
setFieldDefaults : 'c6. 'c6 Js.t -> unit Js.meth;
setFieldLabel : Js.js_string Js.t -> unit Js.meth;
setFieldStyle : 'k. 'k Js.t -> unit Js.meth;
setHeight : Js.number Js.t -> 'p Js.t Js.meth;
setLoading : 'd6 'e6.
'd6 Js.t -> bool Js.t Js.optdef -> 'e6 Js.t Js.meth;
setLocalX : Js.number Js.t -> 'p Js.t Js.meth;
setLocalXY : 'f6.
'f6 Js.t -> Js.number Js.t Js.optdef -> 'p Js.t Js.meth;
setLocalY : Js.number Js.t -> 'p Js.t Js.meth;
setMargin : 'g6. 'g6 Js.t -> unit Js.meth;
setOverflowXY : Js.js_string Js.t ->
Js.js_string Js.t -> 'p Js.t Js.meth;
setPagePosition : 'h6 'i6.
'h6 Js.t ->
Js.number Js.t Js.optdef ->
'i6 Js.t Js.optdef -> 'p Js.t Js.meth;
setPosition : 'j6 'k6.
'j6 Js.t ->
Js.number Js.t Js.optdef ->
'k6 Js.t Js.optdef -> 'p Js.t Js.meth;
setRawValue : 'l 'm. 'l Js.t -> 'm Js.t Js.meth;
setReadOnly : bool Js.t -> unit Js.meth;
setRegion : 'l6.
Ext_util_Region.t Js.t ->
'l6 Js.t Js.optdef -> 'p Js.t Js.meth;
setRegionWeight : Js.number Js.t -> Js.number Js.t Js.meth;
setSize : 'm6 'n6. 'm6 Js.t -> 'n6 Js.t -> 'p Js.t Js.meth;
setUI : Js.js_string Js.t -> unit Js.meth; setValue : 'n. 'o;
setVisible : bool Js.t -> 'p Js.t Js.meth;
setWidth : Js.number Js.t -> 'p Js.t Js.meth;
setX : 'o6. Js.number Js.t -> 'o6 Js.t Js.optdef -> 'p Js.t Js.meth;
setXY : 'p6.
Js.number Js.t Js.js_array Js.t ->
'p6 Js.t Js.optdef -> 'p Js.t Js.meth;
setY : 'q6. Js.number Js.t -> 'q6 Js.t Js.optdef -> 'p Js.t Js.meth;
show : 'r6 's6 't6.
'r6 Js.t Js.optdef ->
's6 Js.callback Js.optdef ->
't6 Js.t Js.optdef -> 'p Js.t Js.meth;
showAt : 'u6 'v6.
'u6 Js.t ->
Js.number Js.t Js.optdef ->
'v6 Js.t Js.optdef -> 'p Js.t Js.meth;
showBy : 'w6.
'w6 Js.t ->
Js.js_string Js.t Js.optdef ->
Js.number Js.t Js.js_array Js.t Js.optdef -> 'p Js.t Js.meth;
statics : Ext_Class.t Js.t Js.meth;
stopAnimation : Ext_dom_Element.t Js.t Js.meth;
suspendEvent : Js.js_string Js.t -> unit Js.meth;
suspendEvents : bool Js.t -> unit Js.meth;
syncFx : 'x6. 'x6 Js.t Js.meth; toBack : 'y6. 'y6 Js.t Js.meth;
toFront : 'z6. bool Js.t Js.optdef -> 'z6 Js.t Js.meth;
transformOriginalValue : 'a7 'b7. 'a7 Js.t -> 'b7 Js.t Js.meth;
transformRawValue : 'c7 'd7. 'c7 Js.t -> 'd7 Js.t Js.meth;
translatePoints : 'e7 'f7.
'e7 Js.t ->
Js.number Js.t Js.optdef -> 'f7 Js.t Js.meth;
trimLabelSeparator : Js.js_string Js.t Js.meth;
un : 'g7 'h7.
Js.js_string Js.t ->
'g7 Js.callback -> 'h7 Js.t Js.optdef -> unit Js.meth;
unsetActiveError : unit Js.meth;
up : 'i7 'j7 'k7.
'i7 Js.t Js.optdef -> 'j7 Js.t Js.optdef -> 'k7 Js.t Js.meth;
update : 'l7 'm7.
'l7 Js.t ->
bool Js.t Js.optdef ->
'm7 Js.callback Js.optdef -> unit Js.meth;
updateBox : 'n7. 'n7 Js.t -> 'p Js.t Js.meth;
updateLayout : 'o7. 'o7 Js.t Js.optdef -> unit Js.meth;
validate : bool Js.t Js.meth;
validateValue : 'p7. 'p7 Js.t -> bool Js.t Js.meth;
valueToRaw : 'q7 'r7. 'q7 Js.t -> 'r7 Js.t Js.meth;
zIndexManager : Ext_ZIndexManager.t Js.t Js.readonly_prop;
zIndexParent : 's7. 's7 Js.t Js.readonly_prop; .. >
as 'p)
Js.t Js.meth as 'o
Sets a data value into the field and runs the change detection and validation. To set the value directly without these inspections see setRawValue.
Parameters:
_ Js.t
The value to set
Returns:
#Ext_form_field_Field.t Js.t
this
method transformRawValue : 'c7 'd7. 'c7 Js.t -> 'd7 Js.t Js.meth
Transform the raw value before it is set
Parameters:
_ Js.t
The value
Returns:
_ Js.t
The value to set
method validateValue : 'p7. 'p7 Js.t -> bool Js.t Js.meth
Uses getErrors to build an array of validation errors. If any errors are found, they are passed to markInvalid and false is returned, otherwise true is returned.
Previously, subclasses were invited to provide an implementation of this to process validations - from 3.2 onwards getErrors should be overridden instead.
Parameters:
_ Js.t
The value to validate
Returns:
bool Js.t
True if all validations passed, false if one or more failed
method valueToRaw : 'q7 'r7. 'q7 Js.t -> 'r7 Js.t Js.meth
Converts a mixed-type value to a raw representation suitable for displaying in the field. This allows controlling how value objects passed to setValue are shown to the user, including localization. For instance, for a Ext.form.field.Date, this would control how a Date object passed to setValue would be converted to a String for display in the field.
See rawToValue for the opposite conversion.
The base implementation simply does a standard toString conversion, and converts empty values to an empty string.
Parameters:
_ Js.t
The mixed-type value to convert to the raw representation.
Returns:
_ Js.t
The converted raw value.