Class sap.ui.vk.FlexibleControlLayoutDataModule: sap/ui/vk/FlexibleControlLayoutData

extends LayoutData

Holds layout data for the FlexibleControl 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 1.32.0 This class is experimental and might be modified or removed in future versions.


Since: 1.22.0.
Constructor Summary
new sap.ui.vk.FlexibleControlLayoutData(sId?, mSettings?)Constructor for a new FlexibleControlLayoutData.
Method Summary
sap.ui.vk.FlexibleControlLayoutData.extend(sClassName, oClassInfo?, FNMetaImpl?)Creates a new subclass of class sap.ui.vk.FlexibleControlLayoutData with name sClassName and enriches it with the information contained in oClassInfo.
sap.ui.vk.FlexibleControlLayoutData.getMetadata()Returns a metadata object for class sap.ui.vk.FlexibleControlLayoutData.
getMarginBottom()Gets current value of property marginBottom.
getMarginTop()Gets current value of property marginTop.
getMinSize()Gets current value of property minSize.
getSize()Gets current value of property size.
setMarginBottom(sMarginBottom)Sets a new value for property marginBottom.
setMarginTop(sMarginTop)Sets a new value for property marginTop.
setMinSize(sMinSize)Sets a new value for property minSize.
setSize(sSize)Sets a new value for property size.
Constructor Detail
new sap.ui.vk.FlexibleControlLayoutData(sId?, mSettings?)
Constructor for a new FlexibleControlLayoutData.

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
    • size : sap.ui.core.CSSSize (default: auto)
    • minSize : sap.ui.core.CSSSize (default: 0px)
    • marginTop : sap.ui.core.CSSSize (default: 0px)
    • marginBottom : sap.ui.core.CSSSize (default: 0px)

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.vk.FlexibleControlLayoutData.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.ui.vk.FlexibleControlLayoutData 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.vk.FlexibleControlLayoutData.getMetadata(): sap.ui.base.Metadata
Returns a metadata object for class sap.ui.vk.FlexibleControlLayoutData.
Returns:
{sap.ui.base.Metadata} Metadata object describing this class
getMarginBottom(): sap.ui.core.CSSSize
Gets current value of property marginBottom.

Default value is 0px.

Returns:
{sap.ui.core.CSSSize} Value of property marginBottom
getMarginTop(): sap.ui.core.CSSSize
Gets current value of property marginTop.

Sets the margin-bottom of the content in px.

Default value is 0px.

Returns:
{sap.ui.core.CSSSize} Value of property marginTop
getMinSize(): sap.ui.core.CSSSize
Gets current value of property minSize.

Sets the minimum size of the content in px.

Default value is 0px.

Returns:
{sap.ui.core.CSSSize} Value of property minSize
Gets current value of property size.

Sets the size of the content.

Default value is auto.

Returns:
{sap.ui.core.CSSSize} Value of property size
setMarginBottom(sMarginBottom): sap.ui.vk.FlexibleControlLayoutData
Sets a new value for property marginBottom.

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

Default value is 0px.

Parameters:
{sap.ui.core.CSSSize}sMarginBottom New value for property marginBottom
Returns:
{sap.ui.vk.FlexibleControlLayoutData} Reference to this in order to allow method chaining
setMarginTop(sMarginTop): sap.ui.vk.FlexibleControlLayoutData
Sets a new value for property marginTop.

Sets the margin-bottom of the content in px.

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

Default value is 0px.

Parameters:
{sap.ui.core.CSSSize}sMarginTop New value for property marginTop
Returns:
{sap.ui.vk.FlexibleControlLayoutData} Reference to this in order to allow method chaining
Sets a new value for property minSize.

Sets the minimum size of the content in px.

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

Default value is 0px.

Parameters:
{sap.ui.core.CSSSize}sMinSize New value for property minSize
Returns:
{sap.ui.vk.FlexibleControlLayoutData} Reference to this in order to allow method chaining
Sets a new value for property size.

Sets the size of the 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.vk.FlexibleControlLayoutData} Reference to this in order to allow method chaining