Class sap.ui.commons.SplitterModule: sap/ui/commons/Splitter
Allows to split the screen into two areas. Make sure that the container for the splitter has an absolute height or set an absolute height for the splitter using the height property. Otherwise the height of the splitter is calculated by the height of its contents.
Deprecated API:Since version 1.38. Instead, use the sap.ui.layout.Splitter
control.
sClassName
and enriches it with the information contained in oClassInfo
.firstPaneContent
.secondPaneContent
.sap.ui.core.Control
in the aggregation firstPaneContent
.sap.ui.core.Control
in the aggregation secondPaneContent
.firstPaneContent
.secondPaneContent
.firstPaneContent
.secondPaneContent
. Accepts an object literal mSettings
that defines initial property values, aggregated and associated objects as well as event handlers. See sap.ui.base.ManagedObject for a general description of the syntax of the settings object.
The supported settings are:
- Properties
- splitterOrientation : sap.ui.core.Orientation (default: Vertical)
- splitterPosition : sap.ui.core.Percentage (default: 50%)
- minSizeFirstPane : sap.ui.core.Percentage (default: 0%)
- minSizeSecondPane : sap.ui.core.Percentage (default: 0%)
- width : sap.ui.commons.SplitterSize (default: 100%)
- height : sap.ui.commons.SplitterSize (default: 100%)
- showScrollBars : boolean (default: true)
- splitterBarVisible : boolean (default: true)
- Aggregations
- firstPaneContent : sap.ui.core.Control[]
- secondPaneContent : sap.ui.core.Control[]
In addition, all settings applicable to the base type sap.ui.core.Control can be used as well.
{string} | sId? | id for the new control, generated automatically if no id is given |
{object} | mSettings? | initial settings for the new control |
- Deprecated:
- Since version 1.38. Instead, use the
sap.ui.layout.Splitter
control.
sClassName
and enriches it with the information contained in oClassInfo
. oClassInfo
might contain the same kind of information as described in sap.ui.core.Control.extend.
{string} | sClassName | Name of the class being created |
{object} | oClassInfo? | Object literal with information about the class |
{function} | FNMetaImpl? | Constructor function for the metadata object; if not given, it defaults to sap.ui.core.ElementMetadata |
{function} | Created class / constructor function |
{sap.ui.base.Metadata} | Metadata object describing this class |
firstPaneContent
. {sap.ui.core.Control} | oFirstPaneContent | the firstPaneContent to add; if empty, nothing is inserted |
{sap.ui.commons.Splitter} | Reference to this in order to allow method chaining |
secondPaneContent
. {sap.ui.core.Control} | oSecondPaneContent | the secondPaneContent to add; if empty, nothing is inserted |
{sap.ui.commons.Splitter} | Reference to this in order to allow method chaining |
firstPaneContent
. {sap.ui.commons.Splitter} | Reference to this in order to allow method chaining |
secondPaneContent
. {sap.ui.commons.Splitter} | Reference to this in order to allow method chaining |
firstPaneContent
. Controls inside the first pane. These are the left ones in case of defining a vertical splitter, and the top ones in case of using the horizontal splitter.
{sap.ui.core.Control[]} |
height
. The height of the split area in px or in %
Default value is 100%
.
{sap.ui.commons.SplitterSize} | Value of property height |
minSizeFirstPane
. The minimum size (width for vertical splitter or height for horizontal splitter) of the first Pane
Default value is 0%
.
{sap.ui.core.Percentage} | Value of property minSizeFirstPane |
minSizeSecondPane
. The minimum size (width for vertical splitter or height for horizontal splitter) of the second Pane
Default value is 0%
.
{sap.ui.core.Percentage} | Value of property minSizeSecondPane |
secondPaneContent
. Controls inside the second pane. These are the right ones in case of defining a vertical splitter, and the bottom ones in case of using the horizontal splitter.
{sap.ui.core.Control[]} |
showScrollBars
. Specifies if the browser should display scroll bars or simply cut the content of a splitter pane when the content does not fit into its pane.
Default value is true
.
{boolean} | Value of property showScrollBars |
splitterBarVisible
. set the splitter bar to be visible or not.
Default value is true
.
{boolean} | Value of property splitterBarVisible |
splitterOrientation
. The splitter can have horizontal or vertical orientation.
Default value is Vertical
.
{sap.ui.core.Orientation} | Value of property splitterOrientation |
splitterPosition
. Position of splitter bar in percentage. The default value means that the splitter is positioned in the middle of the area that is available for the splitter.
Default value is 50%
.
{sap.ui.core.Percentage} | Value of property splitterPosition |
width
. The width of the split area in px or in %
Default value is 100%
.
{sap.ui.commons.SplitterSize} | Value of property width |
sap.ui.core.Control
in the aggregation firstPaneContent
. and returns its index if found or -1 otherwise. {sap.ui.core.Control} | oFirstPaneContent | The firstPaneContent whose index is looked for |
{int} | The index of the provided control in the aggregation if found, or -1 otherwise |
sap.ui.core.Control
in the aggregation secondPaneContent
. and returns its index if found or -1 otherwise. {sap.ui.core.Control} | oSecondPaneContent | The secondPaneContent whose index is looked for |
{int} | The index of the provided control in the aggregation if found, or -1 otherwise |
firstPaneContent
. {sap.ui.core.Control} | oFirstPaneContent | the firstPaneContent to insert; if empty, nothing is inserted |
{int} | iIndex | the 0 -based index the firstPaneContent should be inserted at; for a negative value of iIndex , the firstPaneContent is inserted at position 0; for a value greater than the current size of the aggregation, the firstPaneContent is inserted at the last position |
{sap.ui.commons.Splitter} | Reference to this in order to allow method chaining |
secondPaneContent
. {sap.ui.core.Control} | oSecondPaneContent | the secondPaneContent to insert; if empty, nothing is inserted |
{int} | iIndex | the 0 -based index the secondPaneContent should be inserted at; for a negative value of iIndex , the secondPaneContent is inserted at position 0; for a value greater than the current size of the aggregation, the secondPaneContent is inserted at the last position |
{sap.ui.commons.Splitter} | Reference to this in order to allow method chaining |
firstPaneContent
. Additionally, it unregisters them from the hosting UIArea.
{sap.ui.core.Control[]} | An array of the removed elements (might be empty) |
secondPaneContent
. Additionally, it unregisters them from the hosting UIArea.
{sap.ui.core.Control[]} | An array of the removed elements (might be empty) |
firstPaneContent
. {int|string|sap.ui.core.Control} | vFirstPaneContent | The firstPaneContentto remove or its index or id |
{sap.ui.core.Control} | The removed firstPaneContent or null |
secondPaneContent
. {int|string|sap.ui.core.Control} | vSecondPaneContent | The secondPaneContentto remove or its index or id |
{sap.ui.core.Control} | The removed secondPaneContent or null |
height
. The height of the split area in px or in %
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is 100%
.
{sap.ui.commons.SplitterSize} | sHeight | New value for property height |
{sap.ui.commons.Splitter} | Reference to this in order to allow method chaining |
minSizeFirstPane
. The minimum size (width for vertical splitter or height for horizontal splitter) of the first Pane
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is 0%
.
{sap.ui.core.Percentage} | sMinSizeFirstPane | New value for property minSizeFirstPane |
{sap.ui.commons.Splitter} | Reference to this in order to allow method chaining |
minSizeSecondPane
. The minimum size (width for vertical splitter or height for horizontal splitter) of the second Pane
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is 0%
.
{sap.ui.core.Percentage} | sMinSizeSecondPane | New value for property minSizeSecondPane |
{sap.ui.commons.Splitter} | Reference to this in order to allow method chaining |
showScrollBars
. Specifies if the browser should display scroll bars or simply cut the content of a splitter pane when the content does not fit into its pane.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is true
.
{boolean} | bShowScrollBars | New value for property showScrollBars |
{sap.ui.commons.Splitter} | Reference to this in order to allow method chaining |
splitterBarVisible
. set the splitter bar to be visible or not.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is true
.
{boolean} | bSplitterBarVisible | New value for property splitterBarVisible |
{sap.ui.commons.Splitter} | Reference to this in order to allow method chaining |
splitterOrientation
. The splitter can have horizontal or vertical orientation.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is Vertical
.
{sap.ui.core.Orientation} | sSplitterOrientation | New value for property splitterOrientation |
{sap.ui.commons.Splitter} | Reference to this in order to allow method chaining |
splitterPosition
. Position of splitter bar in percentage. The default value means that the splitter is positioned in the middle of the area that is available for the splitter.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is 50%
.
{sap.ui.core.Percentage} | sSplitterPosition | New value for property splitterPosition |
{sap.ui.commons.Splitter} | Reference to this in order to allow method chaining |
width
. The width of the split area in px or in %
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is 100%
.
{sap.ui.commons.SplitterSize} | sWidth | New value for property width |
{sap.ui.commons.Splitter} | Reference to this in order to allow method chaining |