| Package: | Ext.grid |
| Defined In: | .js |
| Class: | |
| Extends: | Ext.util.Observable |
var split = new Ext.SplitBar("elementToDrag", "elementToSize",
Ext.SplitBar.HORIZONTAL, Ext.SplitBar.LEFT);
split.setAdapter(new Ext.SplitBar.AbsoluteLayoutAdapter("container"));
split.minSize = 100;
split.maxSize = 600;
split.animate = true;
split.on('moved', splitterMoved);
| 方法 | 定义者 | |
|---|---|---|
|
resizingEl
(
)
@private */
@private */
参数项:
|
SplitBar | |
|
proxy
(
)
@private */
@private */
参数项:
|
SplitBar | |
|
dd.b4StartDrag
(
)
@private */
@private */
参数项:
|
SplitBar | |
|
dragSpecs
(
)
@private */
@private */
参数项:
|
SplitBar | |
|
placement placement || (el.getX() > resizingEl.getX() ? Ext.SplitBar.LEFT :
(
)
@private */
@private */
参数项:
|
SplitBar | |
|
getAdapter
(
)
:
Get the adapter this SplitBar uses
Get the adapter this SplitBar uses
参数项:
|
SplitBar | |
setAdapter
(
Object adapter
)
Set the adapter this SplitBar uses
Set the adapter this SplitBar uses
参数项:
|
SplitBar | |
|
getMinimumSize
(
)
: Number
Gets the minimum size for the resiz...
Gets the minimum size for the resizing element
参数项:
|
SplitBar | |
setMinimumSize
(
Number minSize
)
Sets the minimum size for the resiz...
Sets the minimum size for the resizing element
参数项:
|
SplitBar | |
|
getMaximumSize
(
)
: Number
Gets the maximum size for the resiz...
Gets the maximum size for the resizing element
参数项:
|
SplitBar | |
setMaximumSize
(
Number maxSize
)
Sets the maximum size for the resiz...
Sets the maximum size for the resizing element
参数项:
|
SplitBar | |
setCurrentSize
(
Number size
)
Sets the initialize size for the re...
Sets the initialize size for the resizing element
参数项:
|
SplitBar | |
destroy
(
Boolean removeEl
)
Destroy this splitbar.
Destroy this splitbar.
参数项:
|
SplitBar | |
getElementSize
(
Ext.SplitBar s
)
Called before drag operations to ge...
Called before drag operations to get the current size of the resizing element.
参数项:
|
SplitBar | |
setElementSize
(
Ext.SplitBar s,
Number newSize,
Function onComplete
)
Called after drag operations to set...
Called after drag operations to set the size of the resizing element.
参数项:
|
SplitBar | |
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 | |