Class YAHOO.ext.SplitBar

Object
   |
   +--YAHOO.ext.SplitBar

class YAHOO.ext.SplitBar


Creates draggable splitter bar functionality from two elements.

Usage:


 var split = new YAHOO.ext.SplitBar('elementToDrag', 'elementToSize', 
                   YAHOO.ext.SplitBar.HORIZONTAL, YAHOO.ext.SplitBar.LEFT);
 split.setAdapter(new YAHOO.ext.SplitBar.AbsoluteLayoutAdapter("container"));
 split.minSize = 100;
 split.maxSize = 600;
 split.animate = true;
 split.onMoved.subscribe(splitterMoved);
 

Defined in SplitBar.js

Requires:


Nested Class Summary
<static class> YAHOO.ext.SplitBar.BasicLayoutAdapter
<static class> YAHOO.ext.SplitBar.AbsoluteLayoutAdapter
 
Field Summary
 Boolean animate
  Whether to animate the transition to the new size
 Number maxSize
  The maximum size of the resizing element.
 Number minSize
  The minimum size of the resizing element.
 CustomEvent onMoved
  Fires when the SplitBar is moved.
 Boolean useShim
  Whether to create a transparent shim that overlays the page when dragging, enables dragging across iframes.
<static>  Number BOTTOM
  Placement constant - The resizing element is positioned under splitter element
<static>  Number HORIZONTAL
  Orientation constant - Create a horizontal SplitBar
<static>  Number LEFT
  Placement constant - The resizing element is to the left of the splitter element
<static>  Number RIGHT
  Placement constant - The resizing element is to the right of the splitter element
<static>  Number TOP
  Placement constant - The resizing element is positioned above the splitter element
<static>  Number VERTICAL
  Orientation constant - Create a vertical SplitBar
 
Constructor Summary
YAHOO.ext.SplitBar (<String/HTMLElement/Element> dragElement, <String/HTMLElement/Element> resizingElement, <Number> orientation, <Number> placement)
  
 
Method Summary * Parameter types in italic indicate optional parameters
 Object getAdapter()
   Get the adapter this SplitBar uses
 Number getMaximumSize()
   Gets the maximum size for the resizing element
 Number getMinimumSize()
   Gets the minimum size for the resizing element
 void setAdapter(<Object> adapter)
   Set the adapter this SplitBar uses
 void setCurrentSize(<Number> size)
   Sets the initialize size for the resizing element
 void setMaximumSize(<Number> maxSize)
   Sets the maximum size for the resizing element
 void setMinimumSize(<Number> minSize)
   Sets the minimum size for the resizing element

Field Detail

animate

Boolean animate

maxSize

Number maxSize

minSize

Number minSize

onMoved

CustomEvent onMoved

useShim

Boolean useShim

BOTTOM

<static> Number BOTTOM

HORIZONTAL

<static> Number HORIZONTAL

LEFT

<static> Number LEFT

RIGHT

<static> Number RIGHT

TOP

<static> Number TOP

VERTICAL

<static> Number VERTICAL

Constructor Detail

YAHOO.ext.SplitBar

YAHOO.ext.SplitBar(<String/HTMLElement/Element> dragElement, <String/HTMLElement/Element> resizingElement, <Number> orientation, <Number> placement)

Method Detail

getAdapter

Object getAdapter()

getMaximumSize

Number getMaximumSize()

getMinimumSize

Number getMinimumSize()

setAdapter

void setAdapter(<Object> adapter)

setCurrentSize

void setCurrentSize(<Number> size)

setMaximumSize

void setMaximumSize(<Number> maxSize)

setMinimumSize

void setMinimumSize(<Number> minSize)


Documentation generated by JSDoc on Sat Oct 14 06:07:10 2006