Class Ext.form.FieldSet
Creates a fieldset container for layout and rendering of fields in an
Ext.form.Form.
属性
-
方法
-
事件
-
设置选项
公共属性
公共方法
|
FieldSet(Object config ) |
FieldSet |
|
|
addEvents(Object object ) : void |
Observable |
将对象中没有的事件从给出的对象中复制过来。 |
|
addListener(String eventName , Function handler , [Object scope ], [Object options ]) : void |
Observable |
为该组件加入事件处理器函数 |
|
disable() : void |
Component |
Disable this component |
|
enable() : void |
Component |
Enable this component |
|
fireEvent(String eventName , Object... args ) : Boolean |
Observable |
触发指定的事件, 并将参数传入(至少要有事件名称)。 |
|
focus(Boolean selectText ) : void |
Component |
Try to focus this component |
|
getEl() : Ext.Element |
Component |
Returns the underlying Ext.Element |
|
getId() : String |
Component |
Returns the id of this component |
|
hasListener(String eventName ) : Boolean |
Observable |
检查该对象是否拥有指定事件的侦听器 |
|
hide() : void |
Component |
Hide this component |
|
isVisible() : void |
Component |
Returns true if this component is visible |
|
on(String eventName , Function handler , [Object options ]) : void |
Observable |
为该组件加入事件处理器函数, addListener 的简写方式 |
|
purgeListeners() : void |
Observable |
从对象身上移除所有的侦听器 |
|
removeListener(String eventName , Function handler , [Object scope ]) : void |
Observable |
移除侦听器 |
|
render([String/HTMLElement/Element container ]) : void |
Component |
If this is a lazy rendering component, render it to its container element |
|
setDisabled(Boolean disabled ) : void |
Component |
Convenience function for setting disabled/enabled by boolean |
|
setVisible(Boolean visible ) : void |
Component |
Convenience function to hide or show this component by boolean |
|
show() : void |
Component |
Show this component |
|
un(String eventName , Function handler , [Object scope ]) : void |
Observable |
移除侦听器, removeListener 的简写方式 |
公共事件
设置选项
|
autoCreate : String/Object |
FieldSet |
A DomHelper element spec used to autocreate the fieldset (defaults to {tag: 'fieldset', cn: {tag:'legend'}}) |
|
clear : Boolean |
Layout |
True to add a clearing element at the end of this layout, equivalent to CSS clear: both (defaults to true) |
|
hideLabels : Boolean |
Layout |
True to suppress the display of field labels in this layout (defaults to false) |
|
labelAlign : String |
Layout |
Valid values are "left," "top" and "right" (defaults to "left") |
|
labelSeparator : String |
Layout |
The separator to use after field labels (defaults to ':') |
|
labelWidth : Number |
Layout |
Fixed width in pixels of all field labels (defaults to undefined) |
|
legend : String |
FieldSet |
The text to display as the legend for the FieldSet (defaults to '') |
|
style : String/Object/Function |
Layout |
A style specification string eg "width:100px", or object in the form {width:"100px"}, or a function which returns suc... |
属性详情
disabled
public Object disabled
true if this component is disabled. Read-only.
disabledClass
public Object disabledClass
CSS class added to the component when it is disabled.
hidden
public Object hidden
true if this component is hidden. Read-only.
rendered
public Object rendered
true if this component has been rendered. Read-only.
构造函数
FieldSet
public function FieldSet(Object config
)
参数:
config
: ObjectConfiguration options
方法详情
addEvents
public function addEvents(Object object
)
将对象中没有的事件从给出的对象中复制过来。给出的对象必须也继承于 Observable 对象此方法才会有效果。
addListener
public function addListener(String eventName
, Function handler
, [Object scope
], [Object options
])
disable
public function disable()
enable
public function enable()
fireEvent
public function fireEvent(String eventName
, Object... args
)
触发指定的事件并给出参数(至少要有事件名称)。
参数:
eventName
: Stringargs
: Object...传入处理函数的参数
返回:
focus
public function focus(Boolean selectText
)
Try to focus this component
getEl
public function getEl()
getId
public function getId()
Returns the id of this component
hasListener
public function hasListener(String eventName
)
检查该对象是否拥有指定事件的侦听器
参数:
eventName
: String查询事件之名称
返回:
hide
public function hide()
isVisible
public function isVisible()
Returns true if this component is visible
on
public function on(String eventName
, Function handler
, [Object options
])
为该组件加入事件处理器函数, addListener 的简写方式
参数:
eventName
: String侦听事件的类型
handler
: Function事件调用的方法
options
: Object(可选)
返回:
purgeListeners
public function purgeListeners()
removeListener
public function removeListener(String eventName
, Function handler
, [Object scope
])
render
public function render([String/HTMLElement/Element container
])
If this is a lazy rendering component, render it to its container element
setDisabled
public function setDisabled(Boolean disabled
)
Convenience function for setting disabled/enabled by boolean
setVisible
public function setVisible(Boolean visible
)
Convenience function to hide or show this component by boolean
show
public function show()
un
public function un(String eventName
, Function handler
, [Object scope
])
移除侦听器, removeListener 的简写方式
事件详情
beforedestroy
public event beforedestroy
Fires before the component is destroyed
Subscribers will be called with the following parameters:
beforehide
public event beforehide
Fires before the component is hidden
Subscribers will be called with the following parameters:
beforerender
public event beforerender
Fires before the component is rendered
Subscribers will be called with the following parameters:
beforeshow
public event beforeshow
Fires before the component is shown
Subscribers will be called with the following parameters:
destroy
public event destroy
Fires after the component is destroyed
Subscribers will be called with the following parameters:
disable
public event disable
Fires after the component is disabled
Subscribers will be called with the following parameters:
enable
public event enable
Fires after the component is enabled
Subscribers will be called with the following parameters:
hide
public event hide
Fires after the component is hidden
Subscribers will be called with the following parameters:
render
public event render
Fires after the component is rendered
Subscribers will be called with the following parameters:
show
public event show
Fires after the component is shown
Subscribers will be called with the following parameters:
设置详情
autoCreate
autoCreate : String/Object
A DomHelper element spec used to autocreate the fieldset (defaults to {tag: 'fieldset', cn: {tag:'legend'}})
This config option is defined by FieldSet.
clear
clear : Boolean
True to add a clearing element at the end of this layout, equivalent to CSS clear: both (defaults to true)
This config option is defined by
Layout.
hideLabels
hideLabels : Boolean
True to suppress the display of field labels in this layout (defaults to false)
This config option is defined by
Layout.
labelAlign
labelAlign : String
Valid values are "left," "top" and "right" (defaults to "left")
This config option is defined by
Layout.
labelSeparator
labelSeparator : String
The separator to use after field labels (defaults to ':')
This config option is defined by
Layout.
labelWidth
labelWidth : Number
Fixed width in pixels of all field labels (defaults to undefined)
This config option is defined by
Layout.
legend
legend : String
The text to display as the legend for the FieldSet (defaults to '')
This config option is defined by FieldSet.
style
style : String/Object/Function
A style specification string eg "width:100px", or object in the form {width:"100px"}, or a function which returns such a specification.
This config option is defined by
Layout.