Class sap.ui.layout.SplitterLayoutDataModule: sap/ui/layout/SplitterLayoutData

extends LayoutData

Holds layout data for the splitter contents. Allowed size values are numeric values ending in "px" and "%" and the special case "auto". (The CSS value "auto" is used internally to recalculate the size of the content dynamically and is not directly set as style property.)

Experimental API:Since version 1.22.0. API is not yet finished and might change completely


Since: 1.22.0.
Constructor Summary
new sap.ui.layout.SplitterLayoutData(sId?, mSettings?)Constructor for a new SplitterLayoutData.
Method Summary
sap.ui.layout.SplitterLayoutData.extend(sClassName, oClassInfo?, FNMetaImpl?)Creates a new subclass of class sap.ui.layout.SplitterLayoutData with name sClassName and enriches it with the information contained in oClassInfo.
sap.ui.layout.SplitterLayoutData.getMetadata()Returns a metadata object for class sap.ui.layout.SplitterLayoutData.
getMinSize()Gets current value of property minSize.
getResizable()Gets current value of property resizable.
getSize()Gets current value of property size.
setMinSize(iMinSize)Sets a new value for property minSize.
setResizable(bResizable)Sets a new value for property resizable.
setSize(sSize)Sets a new value for property size.
Constructor Detail
new sap.ui.layout.SplitterLayoutData(sId?, mSettings?)
Constructor for a new SplitterLayoutData.

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
    • resizable : boolean (default: true)
    • size : sap.ui.core.CSSSize (default: auto)
    • minSize : int (default: 0)

In addition, all settings applicable to the base type sap.ui.core.LayoutData can be used as well.

Parameters:
{string}sId? id for the new control, generated automatically if no id is given
{object}mSettings? initial settings for the new control
Method Detail
sap.ui.layout.SplitterLayoutData.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.ui.layout.SplitterLayoutData with name sClassName and enriches it with the information contained in oClassInfo.

oClassInfo might contain the same kind of information as described in sap.ui.core.LayoutData.extend.

Parameters:
{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
Returns:
{function} Created class / constructor function
sap.ui.layout.SplitterLayoutData.getMetadata(): sap.ui.base.Metadata
Returns a metadata object for class sap.ui.layout.SplitterLayoutData.
Returns:
{sap.ui.base.Metadata} Metadata object describing this class
getMinSize(): int
Gets current value of property minSize.

Sets the minimum size of the splitter content in px.

Default value is 0.

Returns:
{int} Value of property minSize
getResizable(): boolean
Gets current value of property resizable.

Determines whether the control in the splitter can be resized or not.

Default value is true.

Returns:
{boolean} Value of property resizable
Gets current value of property size.

Sets the size of the splitter content.

Default value is auto.

Returns:
{sap.ui.core.CSSSize} Value of property size
setMinSize(iMinSize): sap.ui.layout.SplitterLayoutData
Sets a new value for property minSize.

Sets the minimum size of the splitter content in px.

When called with a value of null or undefined, the default value of the property will be restored.

Default value is 0.

Parameters:
{int}iMinSize New value for property minSize
Returns:
{sap.ui.layout.SplitterLayoutData} Reference to this in order to allow method chaining
setResizable(bResizable): sap.ui.layout.SplitterLayoutData
Sets a new value for property resizable.

Determines whether the control in the splitter can be resized or not.

When called with a value of null or undefined, the default value of the property will be restored.

Default value is true.

Parameters:
{boolean}bResizable New value for property resizable
Returns:
{sap.ui.layout.SplitterLayoutData} Reference to this in order to allow method chaining
Sets a new value for property size.

Sets the size of the splitter content.

When called with a value of null or undefined, the default value of the property will be restored.

Default value is auto.

Parameters:
{sap.ui.core.CSSSize}sSize New value for property size
Returns:
{sap.ui.layout.SplitterLayoutData} Reference to this in order to allow method chaining