This is a LayoutData element that can be added to a control if this control is used within a ResponsiveFlowLayout.
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 |
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 |
Method | Description |
---|---|
sap.ui.layout.ResponsiveFlowLayoutData.extend |
Creates a new subclass of class sap.ui.layout.ResponsiveFlowLayoutData with name
|
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 |
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 |
getMargin |
Gets current value of property margin. Prevents any margin of the element if set to false. Default value is |
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 |
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 |
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 Default value is |
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 Default value is |
setMargin |
Sets a new value for property margin. Prevents any margin of the element if set to false. When called with a value of Default value is |
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 Default value is |
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 Default value is |
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 |
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
.
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
.
Gets current value of property margin.
Prevents any margin of the element if set to false.
Default value is true
.
Returns a metadata object for class sap.ui.layout.ResponsiveFlowLayoutData.
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
.
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
.
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 |
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 |
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 |
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 |
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 |