Properties Methods Events Direct Link
Observable
  SplitBar

Class CQ.Ext.SplitBar

Package:CQ.Ext
Class:SplitBar
Extends:CQ.Ext.util.Observable
Clientlib:cq.widgets
Creates draggable splitter bar functionality from two elements (element to be dragged and element to be resized).

Usage:
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);

Public Properties

Property Defined By
  animate : Boolean
Whether to animate the transition to the new size
SplitBar
  maxSize : Number
The maximum size of the resizing element. (Defaults to 2000)
SplitBar
  minSize : Number
The minimum size of the resizing element. (Defaults to 0)
SplitBar
  tickSize : Number
The increment, in pixels by which to move this SplitBar. When undefined, the SplitBar moves smoothly.
SplitBar
  useShim : Boolean
Whether to create a transparent shim that overlays the page when dragging, enables dragging across iframes.
SplitBar

Public Methods

Method Defined By

Public Events

Event Defined By