ObservableSplitBar
| Package: | CQ.Ext |
| Class: | SplitBar |
| Extends: | CQ.Ext.util.Observable |
| Clientlib: | cq.widgets |
var split = new CQ.Ext.SplitBar("elementToDrag", "elementToSize",
CQ.Ext.SplitBar.HORIZONTAL, CQ.Ext.SplitBar.LEFT);
split.setAdapter(new CQ.Ext.SplitBar.AbsoluteLayoutAdapter("container"));
split.minSize = 100;
split.maxSize = 600;
split.animate = true;
split.on('moved', splitterMoved); | Method | Defined By | |
|---|---|---|
SplitBar( Mixed dragElement, Mixed resizingElement, [Number orientation], [Number placement] ) Create a new SplitBar
Create a new SplitBar
Parameters:
|
SplitBar | |
destroy( Boolean removeEl ) : void Destroy this splitbar.
Destroy this splitbar.
Parameters:
|
SplitBar | |
enableBubble( String/Array events ) : void Enables events fired by this Observable to bubble up an owner hierarchy by calling
this.getBubbleTarget() if present....
Enables events fired by this Observable to bubble up an owner hierarchy by calling
This is commonly used by CQ.Ext.Components to bubble events to owner Containers. See CQ.Ext.Component.getBubbleTarget. The default implementation in CQ.Ext.Component returns the Component's immediate owner. But if a known target is required, this can be overridden to access the required target more quickly. Example:
Parameters:
|
Observable | |
|
getAdapter() : Object Get the adapter this SplitBar uses
Get the adapter this SplitBar uses
Parameters:
|
SplitBar | |
|
getMaximumSize() : Number Gets the maximum size for the resizing element
Gets the maximum size for the resizing element
Parameters:
|
SplitBar | |
|
getMinimumSize() : Number Gets the minimum size for the resizing element
Gets the minimum size for the resizing element
Parameters:
|
SplitBar | |
relayEvents( Object o, Array events ) : void Relays selected events from the specified Observable as if the events were fired by this.
Relays selected events from the specified Observable as if the events were fired by this.
Parameters:
|
Observable | |
setAdapter( Object adapter ) : void Set the adapter this SplitBar uses
Set the adapter this SplitBar uses
Parameters:
|
SplitBar | |
setCurrentSize( Number size ) : void Sets the initialize size for the resizing element
Sets the initialize size for the resizing element
Parameters:
|
SplitBar | |
setMaximumSize( Number maxSize ) : void Sets the maximum size for the resizing element
Sets the maximum size for the resizing element
Parameters:
|
SplitBar | |
setMinimumSize( Number minSize ) : void Sets the minimum size for the resizing element
Sets the minimum size for the resizing element
Parameters:
|
SplitBar | |