| Package: | Ext.grid |
| Defined In: | .js |
| Class: | |
| Extends: | Ext.form.TriggerField |
| 配置项 | 定义者 | |
|---|---|---|
| format : String
用以覆盖本地化的默认日期格式化字串。字串必须为符合 Date#pars...
用以覆盖本地化的默认日期格式化字串。字串必须为符合 Date#parseDate 指定的形式(默认为 'm/d/y')。
|
DateField | |
| altFormats : String
用 "|" 符号分隔的多个日期格式化字串, 当输入的日期与默认的格式不...
用 "|" 符号分隔的多个日期格式化字串, 当输入的日期与默认的格式不符时用来尝试格式化输入值(默认为 'm/d/Y|m-d-y|m-d-Y|m/d|m-d|d')。
|
DateField | |
| disabledDays : Array
一个禁用的星期数组, 以 0 开始。例如, [0,6] 表示禁用周六和...
一个禁用的星期数组, 以 0 开始。例如, [0,6] 表示禁用周六和周日(默认为 null)。
|
DateField | |
| disabledDaysText : String
禁用星期上显示的工具提示(默认为 'Disabled')
禁用星期上显示的工具提示(默认为 'Disabled')
|
DateField | |
| disabledDates : Array
一个以字串形式表示的禁用的日期数组。这些字串将会被用来创建一个动态正则...
一个以字串形式表示的禁用的日期数组。这些字串将会被用来创建一个动态正则表达式, 所以它们是很强大的。一个例子:
|
DateField | |
| disabledDatesText : String
禁用日期上显示的工具提示(默认为 'Disabled')
禁用日期上显示的工具提示(默认为 'Disabled')
|
DateField | |
| minValue : Date/String
允许的最小日期。可以是一个 Javascript 日期对象或一个有效格...
允许的最小日期。可以是一个 Javascript 日期对象或一个有效格式的字串(默认为 null)
|
DateField | |
| maxValue : Date/String
允许的最大日期。可以是一个 Javascript 日期对象或一个有效格...
允许的最大日期。可以是一个 Javascript 日期对象或一个有效格式的字串(默认为 null)
|
DateField | |
| minText : String
当字段的日期早于 minValue 属性指定值时显示的错误文本(默认为...
当字段的日期早于 minValue 属性指定值时显示的错误文本(默认为 'The date in this field must be after {minValue}')。
|
DateField | |
| maxText : String
当字段的日期晚于 maxValue 属性指定值时显示的错误文本(默认为...
当字段的日期晚于 maxValue 属性指定值时显示的错误文本(默认为 'The date in this field must be before {maxValue}')。
|
DateField | |
| invalidText : String
The error text to use when marking ...
The error text to use when marking a field invalid and no message is provided (defaults to "The value in this field is invalid")
|
Field | |
| triggerClass : String
用以指定触发按钮的附加CSS样式类。触发按钮的类名将总是 'x-for...
用以指定触发按钮的附加CSS样式类。触发按钮的类名将总是 'x-form-trigger', 而如果指定了 triggerClass 则会被追加在其后(默认为 'x-form-date-trigger' 用以显示一个日历图标)。
|
DateField | |
| autoCreate : String/Object
A DomHelper element spec, or true f...
A DomHelper element spec, or true for a default element spec (defaults to {tag: "input", type: "text", size: "20", autocomplete: "off"})
|
Field | |
| hideTrigger : Boolean
为true时隐藏触发元素,只显示基本文本域(默认为false)。
为true时隐藏触发元素,只显示基本文本域(默认为false)。
|
TriggerField | |
| grow : Boolean
True if this field should automatic...
True if this field should automatically grow and shrink to its content
|
TextField | |
| growMin : Number
The minimum width to allow when gro...
The minimum width to allow when grow = true (defaults to 30)
|
TextField | |
| growMax : Number
The maximum width to allow when gro...
The maximum width to allow when grow = true (defaults to 800)
|
TextField | |
| vtype : String} vtype A validation type name as defined in {@link Ext.form.VTypes
A validation type name as defined i...
A validation type name as defined in Ext.form.VTypes (defaults to null)
|
TextField | |
| maskRe : RegExp
An input mask regular expression th...
An input mask regular expression that will be used to filter keystrokes that don't match (defaults to null)
|
TextField | |
| disableKeyFilter : Boolean
True to disable input keystroke fil...
True to disable input keystroke filtering (defaults to false)
|
TextField | |
| allowBlank : Boolean
False to validate that the value le...
False to validate that the value length > 0 (defaults to true)
|
TextField | |
| minLength : Number
Minimum input field length required...
Minimum input field length required (defaults to 0)
|
TextField | |
| maxLength : Number
Maximum input field length allowed ...
Maximum input field length allowed (defaults to Number.MAX_VALUE)
|
TextField | |
| minLengthText : String
Error text to display if the minimu...
Error text to display if the minimum length validation fails (defaults to "The minimum length for this field is {minLength}")
|
TextField | |
| maxLengthText : String
Error text to display if the maximu...
Error text to display if the maximum length validation fails (defaults to "The maximum length for this field is {maxLength}")
|
TextField | |
| selectOnFocus : Boolean
True to automatically select any ex...
True to automatically select any existing field text when the field receives input focus (defaults to false)
|
TextField | |
| blankText : String
Error text to display if the allow ...
Error text to display if the allow blank validation fails (defaults to "This field is required")
|
TextField | |
| validator : Function
A custom validation function to be ...
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.
|
TextField | |
| regex : RegExp
A JavaScript RegExp object to be te...
A JavaScript RegExp object to be tested against the field value during validation (defaults to null). If available, this regex will be evaluated only after the basic validators all return true, and will be passed the current field value. If the test fails, the field will be marked invalid using #regexText.
|
TextField | |
| is : String} regexText The error text to display if {@link #regex
The error text to display if #regex...
The error text to display if #regex is used and the test fails during validation (defaults to "")
|
TextField | |
| emptyText : String
The default text to display in an e...
The default text to display in an empty field (defaults to null).
|
TextField | |
| emptyClass : String} emptyClass The CSS class to apply to an empty field to style the {@link #emptyText
The CSS class to apply to an empty ...
The CSS class to apply to an empty field to style the #emptyText (defaults to 'x-form-empty-field'). This class is automatically added and removed as needed depending on the current field value.
|
TextField | |
| invalidClass : String
The CSS class to use when marking a...
The CSS class to use when marking a field invalid (defaults to "x-form-invalid")
|
Field | |
| focusClass : String
The CSS class to use when the field...
The CSS class to use when the field receives focus (defaults to "x-form-focus")
|
Field | |
| validationEvent : String/Boolean
The event that should initiate fiel...
The event that should initiate field validation. Set to false to disable
automatic validation (defaults to "keyup").
|
Field | |
| validateOnBlur : Boolean
Whether the field should validate w...
Whether the field should validate when it loses focus (defaults to true).
|
Field | |
| validationDelay : Number
The length of time in milliseconds ...
The length of time in milliseconds after user input begins until validation is initiated (defaults to 250)
|
Field | |
| fieldClass : String
The default CSS class for the field...
The default CSS class for the field (defaults to "x-form-field")
|
Field | |
| msgTarget : String
The location where error text shoul...
The location where error text should display. Should be one of the following values (defaults to 'qtip'):
Value Description ----------- ---------------------------------------------------------------------- qtip Display a quick tip when the user hovers over the field title Display a default browser title attribute popup under Add a block div beneath the field containing the error text side Add an error icon to the right of the field with a popup on hover [element id] Add the error text directly to the innerHTML of the specified element |
Field | |
| msgFx : String
Experimental The effect used...
Experimental The effect used when displaying a validation message under the field (defaults to 'normal').
|
Field | |
| readOnly : Boolean
True to mark the field as readOnly ...
True to mark the field as readOnly in HTML (defaults to false) -- Note: this only sets the element's readOnly DOM attribute.
|
Field | |
| disabled : Boolean
True to disable the field (defaults...
True to disable the field (defaults to false).
|
Field | |
| deferHeight : Boolean
True表示为根据外置的组件延时计算高度,false表示允许该组件自行...
True表示为根据外置的组件延时计算高度,false表示允许该组件自行设置高度(缺省为false)。
|
BoxComponent | |
| disabledClass : String
当组件被禁用时作用的CSS样式类(默认为"x-item-disable...
当组件被禁用时作用的CSS样式类(默认为"x-item-disabled")。
|
Component | |
| allowDomMove : Boolean
当渲染进行时能否移动Dom节点上的组件(默认为true)。
当渲染进行时能否移动Dom节点上的组件(默认为true)。
|
Component | |
| autoShow : Boolean
True表示为在渲染的时候先检测一下有否关于隐藏的样式类(如:'x-h...
True表示为在渲染的时候先检测一下有否关于隐藏的样式类(如:'x-hidden'或'x-hide-display'),有就移除隐藏的样式类。 (缺省为false)
|
Component | |
| hideMode : String
这个组件是怎么隐藏的。可支持的值有"visibility" (css中...
这个组件是怎么隐藏的。可支持的值有"visibility" (css中的visibility), "offsets"(负偏移位置)和 "display"(css中的display)-默认为“display”。
|
Component | |
| hideParent : Boolean
True表示为当隐藏/显示组件时对组件的容器亦一同隐藏/显示,fals...
True表示为当隐藏/显示组件时对组件的容器亦一同隐藏/显示,false就只会隐藏/显示组件本身(默认为false)。 例如,可设置一个hide:true的隐藏按钮在window,如果按下就通知其父容器一起隐藏,这样做起来比较快捷省事。
|
Component | |
| 属性 | 定义者 | |
|---|---|---|
|
initialConfig: Object
This Component's initial configurat...
This Component's initial configuration specification. 只读的 组件初始化配置项。只读的
|
Component | |
|
*/: Boolean
True表示为该组件已经渲染好了。只读的。
True表示为该组件已经渲染好了。只读的。
|
Component | |
| 方法 | 定义者 | |
|---|---|---|
|
getValue
(
)
: Mixed
Returns the normalized data value (...
Returns the normalized data value (undefined or emptyText will be returned as ''). To return the raw value see {@link #getRawValue}.
参数项:
|
Field | |
setValue
(
Mixed value
)
Sets a data value into the field an...
Sets a data value into the field and validates it. To set the value directly without validation see {@link #setRawValue}.
参数项:
|
Field | |
onTriggerClick
(
EventObject e
)
该方法应该用于处理触发器的click事件。默认为空方法,要被某个实现的...
该方法应该用于处理触发器的click事件。默认为空方法,要被某个实现的方法重写后才会有效。 @method
参数项:
|
TriggerField | |
|
reset
(
)
Resets the current field value to t...
Resets the current field value to the originally loaded value and clears any validation messages
参数项:
|
Field | |
validateValue
(
Mixed value
)
: Boolean
Validates a value according to the ...
Validates a value according to the field's validation rules and marks the field as invalid if the validation fails
参数项:
|
TextField | |
selectText
(
Number start,
Number end
)
Selects text in this field
Selects text in this field
参数项:
|
TextField | |
|
autoSize
(
)
Automatically grows the field to ac...
Automatically grows the field to accomodate the width of the text up to the maximum field width allowed. This only takes effect if grow = true, and fires the autosize event.
参数项:
|
TextField | |
|
getName
(
)
: String
Returns the name attribute of the f...
Returns the name attribute of the field if available
参数项:
|
Field | |
|
isDirty
(
)
Returns true if this field has been...
Returns true if this field has been changed since it was originally loaded and is not disabled.
参数项:
|
Field | |
isValid
(
Boolean preventMark
)
: Boolean
Returns whether or not the field va...
Returns whether or not the field value is currently valid
参数项:
|
Field | |
|
validate
(
)
: Boolean
Validates the field value
Validates the field value
参数项:
|
Field | |
markInvalid
(
String msg
)
Mark this field as invalid
Mark this field as invalid
参数项:
|
Field | |
|
clearInvalid
(
)
Clear any invalid styles/messages f...
Clear any invalid styles/messages for this field
参数项:
|
Field | |
|
getRawValue
(
)
: Mixed
Returns the raw data value which ma...
Returns the raw data value which may or may not be a valid, defined value. To return a normalized value see {@link #getValue}.
参数项:
|
Field | |
setRawValue
(
Mixed value
)
Sets the underlying DOM field's val...
Sets the underlying DOM field's value directly, bypassing validation. To set the value with validation see {@link #setValue}.
参数项:
|
Field | |
setSize
(
Number/Object width,
Number height
)
: Ext.BoxComponent
设置组件的宽度和高度。
此方法会触发resize事件。
此方法既可...
设置组件的宽度和高度。
此方法会触发resize事件。
此方法既可接受单独的数字类型的参数,也可以传入一个size的对象,如 {width:10, height:20}。
参数项:
|
BoxComponent | |
setWidth
(
Number height
)
: Ext.BoxComponent
设置组件的宽度。此方法会触发resize事件。
设置组件的宽度。此方法会触发resize事件。
参数项:
|
BoxComponent | |
setHeight
(
Number height
)
: Ext.BoxComponent
设置组件的高度。此方法会触发resize事件。
设置组件的高度。此方法会触发resize事件。
参数项:
|
BoxComponent | |
|
getSize
(
)
: Object
返回当前组件所属元素的大小。
返回当前组件所属元素的大小。
参数项:
|
BoxComponent | |
getPosition
(
[Boolean local]
)
: Array
对组件所在元素当前的XY位置
对组件所在元素当前的XY位置
参数项:
|
BoxComponent | |
getBox
(
[Boolean local]
)
: Object
返回对组件所在元素的测量矩形大小。
返回对组件所在元素的测量矩形大小。
参数项:
|
BoxComponent | |
updateBox
(
Object box
)
: Ext.BoxComponent
对组件所在元素的测量矩形大小,然后根据此值设置组件的大小。
对组件所在元素的测量矩形大小,然后根据此值设置组件的大小。
参数项:
|
BoxComponent | |
setPosition
(
Number left,
Number top
)
: Ext.BoxComponent
设置组件的left和top值。要设置基于页面的XY位置,可使用{@li...
设置组件的left和top值。要设置基于页面的XY位置,可使用{@link #setPagePosition}。
此方法触发move事件。
参数项:
|
BoxComponent | |
setPagePosition
(
Number x,
Number y
)
: Ext.BoxComponent
设置组件页面上的left和top值。
要设置left、top的位置,...
设置组件页面上的left和top值。
要设置left、top的位置,可使用{@link #setPosition}。
此方法触发move事件。
参数项:
|
BoxComponent | |
|
syncSize
(
)
: Ext.BoxComponent
强制重新计算组件的大小尺寸,这个尺寸是基于所属元素当前的高度和宽度。
强制重新计算组件的大小尺寸,这个尺寸是基于所属元素当前的高度和宽度。
参数项:
|
BoxComponent | |
onResize
(
Number x,
Number y,
Number adjWidth,
Number adjHeight,
Number rawWidth,
Number rawHeight
)
/* // protected
组件大小调节过后调用的函数,这是个空...
/* // protected
组件大小调节过后调用的函数,这是个空函数,可由一个子类来实现,执行一些调节大小过后的自定义逻辑。
参数项:
|
BoxComponent | |
onPosition
(
Number x,
Number y
)
/* // protected
组件移动过后调用的函数,这是个空函数...
/* // protected
组件移动过后调用的函数,这是个空函数,可由一个子类来实现,执行一些移动过后的自定义逻辑。
参数项:
|
BoxComponent | |
|
initComponent
(
)
/* // protected Function to be impl...
/* // protected Function to be implemented by Component subclasses to be part of standard component initialization flow (it is empty by default).
参数项:
|
Component | |
render
(
[Mixed container],
[String/Number position]
)
如果这是延时加载的组件,就要执行这个渲染的方法到其容器的元素。
这...
如果这是延时加载的组件,就要执行这个渲染的方法到其容器的元素。
这个组件插入到容器的之前位置,可以是元素的ID或是DOM节点的索引(缺省是插入到容器的尾部)
参数项:
|
Component | |
applyToMarkup
(
String/HTMLElement el
)
把这个组件应用到当前有效的markup。执行该函数后,无须调用rend...
把这个组件应用到当前有效的markup。执行该函数后,无须调用render()
参数项:
|
Component | |
addClass
(
string cls
)
加入CSS样式类到组件所在的元素。
加入CSS样式类到组件所在的元素。
参数项:
|
Component | |
removeClass
(
string cls
)
移除CSS样式类到组件所属的元素。
移除CSS样式类到组件所属的元素。
参数项:
|
Component | |
|
destroy
(
)
清除任何的事件的句柄,在DOM中移除组件的元素,从容器{@link E...
清除任何的事件的句柄,在DOM中移除组件的元素,从容器{@link Ext.Container}中移除本身(如果适合的话)和在{@link Ext.ComponentMgr}注销 销毁的方法一般由框架自动执行,通常不需要直接执行。
参数项:
|
Component | |
|
getEl
(
)
: Ext.Element
返回所属的{@link Ext.Element}.
返回所属的{@link Ext.Element}.
参数项:
|
Component | |
|
getId
(
)
: String
返回该组件的id
返回该组件的id
参数项:
|
Component | |
|
getItemId
(
)
: String
返回该组件的item id。
返回该组件的item id。
参数项:
|
Component | |
focus
(
[Boolean selectText],
[Boolean/Number delay]
)
: Ext.Component
试着将焦点放到此项。
试着将焦点放到此项。
参数项:
|
Component | |
|
disable
(
)
: Ext.Component
禁止该组件。
禁止该组件。
参数项:
|
Component | |
|
enable
(
)
: Ext.Component
启用该组件。
启用该组件。
参数项:
|
Component | |
setDisabled
(
Boolean disabled
)
方便的函数用来控制组件禁用/可用。
方便的函数用来控制组件禁用/可用。
参数项:
|
Component | |
|
show
(
)
: Ext.Component
显示该组件。
显示该组件。
参数项:
|
Component | |
|
hide
(
)
: Ext.Component
隐藏该组件。
隐藏该组件。
参数项:
|
Component | |
setVisible
(
Boolean visible
)
: Ext.Component
方便的函数用来控制组件显示/隐藏。
方便的函数用来控制组件显示/隐藏。
参数项:
|
Component | |
|
isVisible
(
)
该组件可见时返回true。
该组件可见时返回true。
参数项:
|
Component | |
cloneConfig
(
*/
)
: Ext.Component
根据原始传入到该实例的配置项值,克隆一份组件。
根据原始传入到该实例的配置项值,克隆一份组件。
参数项:
|
Component | |
|
getXType
(
)
: String
获取{@link Ext.ComponentMgr}在已登记组件的xt...
获取{@link Ext.ComponentMgr}在已登记组件的xtypes。 全部可用的xtypes列表,可参考{@link Ext.Component}开头,用法举例:
参数项:
|
Component | |
isXType
(
String xtype,
[Boolean shallow]
)
测试这个组件是否属于某个指定的xtype。 这个方法既可测试该组件是否...
测试这个组件是否属于某个指定的xtype。 这个方法既可测试该组件是否为某个xtype的子类,或直接是这个xtype的实例(shallow = true) 全部可用的xtypes列表,可参考{@link Ext.Component}开头,用法举例:
true就表示为测试该组件是否这个xtype本身的实例
参数项:
|
Component | |
|
getXTypes
(
)
: String
返回以斜杠分割的字符串,表示组件的xtype层次。 全部可用的xtyp...
返回以斜杠分割的字符串,表示组件的xtype层次。 全部可用的xtypes列表,可参考{@link Ext.Component}开头,用法举例:
参数项:
|
Component | |
fireEvent
(
String eventName,
)
: Boolean
触发指定的事件,并将参数传入(至少要有事件名称)。
触发指定的事件,并将参数传入(至少要有事件名称)。
参数项:
|
Observable | |
addListener
(
String eventName,
Function handler,
[Object scope],
[Object options]
)
为该组件加入事件句柄(event handler)
为该组件加入事件句柄(event handler)
句柄函数执行时所在的作用域。句柄函数“this”的上下文。 触发事件后开始执行句柄的延时时间(invocation:the act of making a particular function start),单位:毫秒 true代表为下次事件触发加入一个要处理的句柄,然后再移除本身。 不同配搭方式的选项 一次调用加入上多个句柄(handlers) 或者是以简写的方式书写,前提是只允许同一个的作用域对象传入到所有的句柄中:
参数项:
|
Observable | |
removeListener
(
String eventName,
Function handler,
Object scope
)
移除侦听器
移除侦听器
参数项:
|
Observable | |
|
purgeListeners
(
)
从这个对象身上移除所有的侦听器
从这个对象身上移除所有的侦听器
参数项:
|
Observable | |
addEvents
(
Object object
)
定义观察者的事件。
定义观察者的事件。
参数项:
|
Observable | |
hasListener
(
String eventName
)
: Boolean
查询该对象是否有指定事件的侦听器
查询该对象是否有指定事件的侦听器
参数项:
|
Observable | |
|
suspendEvents
(
)
暂停触发所有的事件(参阅{@link #resumeEvents})
暂停触发所有的事件(参阅{@link #resumeEvents})
参数项:
|
Observable | |
|
resumeEvents
(
)
重新触发事件(参阅{@link #suspendEvents})
重新触发事件(参阅{@link #suspendEvents})
参数项:
|
Observable | |
Ext.util.Observable.prototype.on
(
String eventName,
[Object scope],
Function handler,
[Object options]
)
为该元素添加事件句柄(event handler),addListen...
为该元素添加事件句柄(event handler),addListener的简写方式 @param {String} eventName 侦听事件的类型 @param {Object} scope (可选的) 执行句柄的作用域 @param {Function} handler 事件涉及的方法 @param {Object} options (可选的) @method
参数项:
|
Observable | |
Ext.util.Observable.prototype.un
(
String eventName,
Function handler,
[Object scope]
)
移除侦听器 @param {String} eventName ...
移除侦听器 @param {String} eventName 侦听事件的类型 @param {Function} handler 事件涉及的方法 @param {Object} scope (可选的)句柄的作用域 @method
参数项:
|
Observable | |
Ext.util.Observable.capture
(
Observable o,
Function fn,
[Object scope]
)
. 开始捕捉特定的观察者。 在事件触发之前,所有的事件会...
. 开始捕捉特定的观察者。 在事件触发之前,所有的事件会以"事件名称+标准签名"的形式传入到函数(传入的参数是function类型)。 如果传入的函数执行后返回false,则接下的事件将不会触发。 @param {Observable} o 要捕捉的观察者 @param {Function} fn 要调用的函数 @param {Object} scope (可选的)函数作用域 @static
参数项:
|
Observable | |
Ext.util.Observable.releaseCapture
(
Observable o
)
从Observable身上移除所有已加入的捕捉captu...
从Observable身上移除所有已加入的捕捉captures @param {Observable} o 要释放的观察者 @static
参数项:
|
Observable | |