class sap.ui.layout.ResponsiveFlowLayoutData

Visiblity: public
UX Guidelines:
Implements:
Available since: N/A
Module: sap/ui/layout/ResponsiveFlowLayoutData
Application Component: CA-UI5-CTR

This is a LayoutData element that can be added to a control if this control is used within a ResponsiveFlowLayout.


Constructor

Constructor for a new ResponsiveFlowLayoutData.

Accepts an object literal mSettings that defines initial property values, aggregated and associated objects as well as event handlers. See sap.ui.base.ManagedObject#constructor for a general description of the syntax of the settings object.

new sap.ui.layout.ResponsiveFlowLayoutData(sId?, mSettings?)
Param Type Default Value Description
sId? string

ID for the new control, generated automatically if no ID is given

mSettings? object

Initial settings for the new control


Properties

Name Type Default Value Description
linebreak boolean false

If this property is set, the control in which the LayoutData is added, will always cause a line break within the ResponsiveFlowLayout.

Visibility: public
linebreakable boolean true

Shows if an element can be wrapped into a new row. If this value is set to false, the min-width will be set to 0 and the wrapping is up to the previous element.

Visibility: public
margin boolean true

Prevents any margin of the element if set to false.

Visibility: public
minWidth int 100

Defines the minimal size in px of a ResponsiveFlowLayout element. The element will be shrunk down to this value.

Visibility: public
weight int 1

Defines the weight of the element, that influences the resulting width. If there are several elements within a row of the ResponsiveFlowLayout, each element could have another weight. The bigger the weight of a single element, the wider it will be stretched, i.e. a bigger weight results in a larger width.

Visibility: public

Methods Overview

Method Description
sap.ui.layout.ResponsiveFlowLayoutData.extend

Creates a new subclass of class sap.ui.layout.ResponsiveFlowLayoutData 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.

getLinebreak

Gets current value of property linebreak.

If this property is set, the control in which the LayoutData is added, will always cause a line break within the ResponsiveFlowLayout.

Default value is false.

getLinebreakable

Gets current value of property linebreakable.

Shows if an element can be wrapped into a new row. If this value is set to false, the min-width will be set to 0 and the wrapping is up to the previous element.

Default value is true.

getMargin

Gets current value of property margin.

Prevents any margin of the element if set to false.

Default value is true.

sap.ui.layout.ResponsiveFlowLayoutData.getMetadata

Returns a metadata object for class sap.ui.layout.ResponsiveFlowLayoutData.

getMinWidth

Gets current value of property minWidth.

Defines the minimal size in px of a ResponsiveFlowLayout element. The element will be shrunk down to this value.

Default value is 100.

getWeight

Gets current value of property weight.

Defines the weight of the element, that influences the resulting width. If there are several elements within a row of the ResponsiveFlowLayout, each element could have another weight. The bigger the weight of a single element, the wider it will be stretched, i.e. a bigger weight results in a larger width.

Default value is 1.

setLinebreak

Sets a new value for property linebreak.

If this property is set, the control in which the LayoutData is added, will always cause a line break within the ResponsiveFlowLayout.

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

Default value is false.

setLinebreakable

Sets a new value for property linebreakable.

Shows if an element can be wrapped into a new row. If this value is set to false, the min-width will be set to 0 and the wrapping is up to the previous element.

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

Default value is true.

setMargin

Sets a new value for property margin.

Prevents any margin of the element if set to false.

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

Default value is true.

setMinWidth

Sets a new value for property minWidth.

Defines the minimal size in px of a ResponsiveFlowLayout element. The element will be shrunk down to this value.

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

Default value is 100.

setWeight

Sets a new value for property weight.

Defines the weight of the element, that influences the resulting width. If there are several elements within a row of the ResponsiveFlowLayout, each element could have another weight. The bigger the weight of a single element, the wider it will be stretched, i.e. a bigger weight results in a larger width.

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

Default value is 1.

sap.ui.layout.ResponsiveFlowLayoutData.extend

Creates a new subclass of class sap.ui.layout.ResponsiveFlowLayoutData 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.

Param Type DefaultValue Description
sClassName string

Name of the class being created

oClassInfo object

Object literal with information about the class

FNMetaImpl function

Constructor function for the metadata object; if not given, it defaults to the metadata implementation used by this class

getLinebreak

Gets current value of property linebreak.

If this property is set, the control in which the LayoutData is added, will always cause a line break within the ResponsiveFlowLayout.

Default value is false.

getLinebreakable

Gets current value of property linebreakable.

Shows if an element can be wrapped into a new row. If this value is set to false, the min-width will be set to 0 and the wrapping is up to the previous element.

Default value is true.

getMargin

Gets current value of property margin.

Prevents any margin of the element if set to false.

Default value is true.

sap.ui.layout.ResponsiveFlowLayoutData.getMetadata

Returns a metadata object for class sap.ui.layout.ResponsiveFlowLayoutData.

getMinWidth

Gets current value of property minWidth.

Defines the minimal size in px of a ResponsiveFlowLayout element. The element will be shrunk down to this value.

Default value is 100.

getWeight

Gets current value of property weight.

Defines the weight of the element, that influences the resulting width. If there are several elements within a row of the ResponsiveFlowLayout, each element could have another weight. The bigger the weight of a single element, the wider it will be stretched, i.e. a bigger weight results in a larger width.

Default value is 1.

setLinebreak

Sets a new value for property linebreak.

If this property is set, the control in which the LayoutData is added, will always cause a line break within the ResponsiveFlowLayout.

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

Default value is false.

Param Type DefaultValue Description
bLinebreak boolean false

New value for property linebreak

setLinebreakable

Sets a new value for property linebreakable.

Shows if an element can be wrapped into a new row. If this value is set to false, the min-width will be set to 0 and the wrapping is up to the previous element.

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

Default value is true.

Param Type DefaultValue Description
bLinebreakable boolean true

New value for property linebreakable

setMargin

Sets a new value for property margin.

Prevents any margin of the element if set to false.

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

Default value is true.

Param Type DefaultValue Description
bMargin boolean true

New value for property margin

setMinWidth

Sets a new value for property minWidth.

Defines the minimal size in px of a ResponsiveFlowLayout element. The element will be shrunk down to this value.

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

Default value is 100.

Param Type DefaultValue Description
iMinWidth int 100

New value for property minWidth

setWeight

Sets a new value for property weight.

Defines the weight of the element, that influences the resulting width. If there are several elements within a row of the ResponsiveFlowLayout, each element could have another weight. The bigger the weight of a single element, the wider it will be stretched, i.e. a bigger weight results in a larger width.

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

Default value is 1.

Param Type DefaultValue Description
iWeight int 1

New value for property weight