Class sap.m.FlexItemDataModule: sap/m/FlexItemData
Holds layout data for a FlexBox|HBox|VBox
sClassName
and enriches it with the information contained in oClassInfo
.sap.m.FlexItemData
. 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
- alignSelf : sap.m.FlexAlignSelf (default: Auto)
- order : int (default: 0)
- growFactor : float (default: 0)
- shrinkFactor : float (default: 1)
- baseSize : sap.ui.core.CSSSize (default: auto)
- minHeight : sap.ui.core.CSSSize (default: auto)
- maxHeight : sap.ui.core.CSSSize (default: )
- minWidth : sap.ui.core.CSSSize (default: auto)
- maxWidth : sap.ui.core.CSSSize (default: )
- styleClass : string (default: )
- backgroundDesign : sap.m.BackgroundDesign (default: Transparent)
In addition, all settings applicable to the base type sap.ui.core.LayoutData can be used as well.
{string} | sId? | id for the new element, generated automatically if no id is given |
{object} | mSettings? | initial settings for the new element |
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.
{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 |
alignSelf
. Determines cross-axis alignment of individual element (not currently supported in Internet Explorer)
Default value is Auto
.
{sap.m.FlexAlignSelf} | Value of property alignSelf |
backgroundDesign
. Defines the background style of the flex item.
Default value is Transparent
.
- Since:
- 1.38.5
{sap.m.BackgroundDesign} | Value of property backgroundDesign |
baseSize
. The base size is the initial main size of the item for the flex algorithm. If set to "auto", this will be the computed size of the item.
Default value is auto
.
- Since:
- 1.32.0
{sap.ui.core.CSSSize} | Value of property baseSize |
growFactor
. Determines the flexibility of the flex item when allocatable space is remaining.
Default value is 0
.
{float} | Value of property growFactor |
maxHeight
. The maximum height of the flex item.
Default value is .
- Since:
- 1.36.0
{sap.ui.core.CSSSize} | Value of property maxHeight |
maxWidth
. The maximum height of the flex item.
Default value is .
- Since:
- 1.36.0
{sap.ui.core.CSSSize} | Value of property maxWidth |
minHeight
. The minimum height of the flex item.
Default value is auto
.
- Since:
- 1.36.0
{sap.ui.core.CSSSize} | Value of property minHeight |
minWidth
. The minimum height of the flex item.
Default value is auto
.
- Since:
- 1.36.0
{sap.ui.core.CSSSize} | Value of property minWidth |
order
. Determines the display order of flex items independent of their source code order.
Default value is 0
.
{int} | Value of property order |
shrinkFactor
. The shrink factor determines how much the flex item will shrink relative to the rest of the flex items in the flex container when negative free space is distributed.
Default value is 1
.
- Since:
- 1.24.0
{float} | Value of property shrinkFactor |
styleClass
. The style class will be applied to the flex item and can be used for CSS selectors
Default value is .
{string} | Value of property styleClass |
alignSelf
. Determines cross-axis alignment of individual element (not currently supported in Internet Explorer)
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is Auto
.
{sap.m.FlexAlignSelf} | sAlignSelf | New value for property alignSelf |
{sap.m.FlexItemData} | Reference to this in order to allow method chaining |
backgroundDesign
. Defines the background style of the flex item.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is Transparent
.
{sap.m.BackgroundDesign} | sBackgroundDesign | New value for property backgroundDesign |
- Since:
- 1.38.5
{sap.m.FlexItemData} | Reference to this in order to allow method chaining |
baseSize
. The base size is the initial main size of the item for the flex algorithm. If set to "auto", this will be the computed size of the item.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is auto
.
{sap.ui.core.CSSSize} | sBaseSize | New value for property baseSize |
- Since:
- 1.32.0
{sap.m.FlexItemData} | Reference to this in order to allow method chaining |
growFactor
. Determines the flexibility of the flex item when allocatable space is remaining.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is 0
.
{float} | fGrowFactor | New value for property growFactor |
{sap.m.FlexItemData} | Reference to this in order to allow method chaining |
maxHeight
. The maximum height of the flex item.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is .
{sap.ui.core.CSSSize} | sMaxHeight | New value for property maxHeight |
- Since:
- 1.36.0
{sap.m.FlexItemData} | Reference to this in order to allow method chaining |
maxWidth
. The maximum height of the flex item.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is .
{sap.ui.core.CSSSize} | sMaxWidth | New value for property maxWidth |
- Since:
- 1.36.0
{sap.m.FlexItemData} | Reference to this in order to allow method chaining |
minHeight
. The minimum height of the flex item.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is auto
.
{sap.ui.core.CSSSize} | sMinHeight | New value for property minHeight |
- Since:
- 1.36.0
{sap.m.FlexItemData} | Reference to this in order to allow method chaining |
minWidth
. The minimum height of the flex item.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is auto
.
{sap.ui.core.CSSSize} | sMinWidth | New value for property minWidth |
- Since:
- 1.36.0
{sap.m.FlexItemData} | Reference to this in order to allow method chaining |
order
. Determines the display order of flex items independent of their source code order.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is 0
.
{int} | iOrder | New value for property order |
{sap.m.FlexItemData} | Reference to this in order to allow method chaining |
shrinkFactor
. The shrink factor determines how much the flex item will shrink relative to the rest of the flex items in the flex container when negative free space is distributed.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is 1
.
{float} | fShrinkFactor | New value for property shrinkFactor |
- Since:
- 1.24.0
{sap.m.FlexItemData} | Reference to this in order to allow method chaining |
styleClass
. The style class will be applied to the flex item and can be used for CSS selectors
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is .
{string} | sStyleClass | New value for property styleClass |
{sap.m.FlexItemData} | Reference to this in order to allow method chaining |