Clear Up
SharpKit Reference

Splitter Class

This class functions between siblings of a VBox or HBox layout to resize both immediate siblings.

A Splitter will preserve the flex ratio of any flexed siblings it is required to resize. It does this by setting the flex property of all flexed siblings to equal their pixel size. The actual numerical flex property in the Components will change, but the ratio to the total flex value will be preserved.

A Splitter may be configured to show a centered mini-collapse tool orientated to collapse the collapseTarget. The Splitter will then call that sibling Panel's collapse or expand method to perform the appropriate operation (depending on the sibling collapse state). To create the mini-collapse tool but take care of collapsing yourself, configure the splitter with performCollapse: false.

Namespace: Ext.resizer

Fields

Name Description
collapsedCls A class to add to the splitter when it is collapsed. See collapsible.
collapseOnDblClick True to enable dblclick to toggle expand and collapse on the collapseTarget Panel. Defaults to: true
collapseTarget A string describing the relative position of the immediate sibling Panel to collapse. May be 'prev' or 'next'. Or the immediate sibling Panel to collapse. The orientation of the mini-collapse tool will be inferred from this setting. Note that only Panels may be collapsed. Defaults to: "next"
collapsible True to show a mini-collapse tool in the Splitter to toggle expand and collapse on the collapseTarget Panel. Defaults to the collapsible setting of the Panel. Defaults to: false
defaultSplitMax Provides a default maximum width or height for the two components that the splitter is between. Defaults to: 1000
defaultSplitMin Provides a default minimum width or height for the two components that the splitter is between. Defaults to: 40
performCollapse Set to false to prevent this Splitter's mini-collapse tool from managing the collapse state of the collapseTarget.

Methods

Name Description
getTrackerConfig() Returns the config object (with an xclass property) for the splitter tracker. This is overridden by BorderSplitter to create a BorderSplitterTracker.

Properties

Name Description
orientation Orientation of this Splitter. 'vertical' when used in an hbox layout, 'horizontal' when used in a vbox layout.
© Copyright 2005-2011 SharpKit. All rights reserved.