Class sap.m.ToolbarLayoutDataModule: sap/m/ToolbarLayoutData
Defines layout data for the toolbar items.
Since: 1.20.
sClassName and enriches it with the information contained in oClassInfo. 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
- shrinkable : boolean (default: false)
- minWidth : sap.ui.core.CSSSize
- maxWidth : sap.ui.core.CSSSize
In addition, all settings applicable to the base type sap.ui.core.LayoutData can be used as well.
| {string} | sId? | ID for the new control, generated automatically if no ID is given |
| {object} | mSettings? | Initial settings for the new control |
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 |
maxWidth. Sets the maximum width of the toolbar item.
| {sap.ui.core.CSSSize} | Value of property maxWidth |
minWidth. Sets the minimum width of the toolbar item.
| {sap.ui.core.CSSSize} | Value of property minWidth |
shrinkable. Determines whether the control, when in a toolbar, is shrinkable or not. For controls with fixed width (100px, 5rem, etc...) this property is ignored.
Note: Nested layout controls should not be shrinkable.
Default value is false.
| {boolean} | Value of property shrinkable |
maxWidth. Sets the maximum width of the toolbar item.
When called with a value of null or undefined, the default value of the property will be restored.
| {sap.ui.core.CSSSize} | sMaxWidth | New value for property maxWidth |
| {sap.m.ToolbarLayoutData} | Reference to this in order to allow method chaining |
minWidth. Sets the minimum width of the toolbar item.
When called with a value of null or undefined, the default value of the property will be restored.
| {sap.ui.core.CSSSize} | sMinWidth | New value for property minWidth |
| {sap.m.ToolbarLayoutData} | Reference to this in order to allow method chaining |
shrinkable. Determines whether the control, when in a toolbar, is shrinkable or not. For controls with fixed width (100px, 5rem, etc...) this property is ignored.
Note: Nested layout controls should not be shrinkable.
When called with a value of null or undefined, the default value of the property will be restored.
Default value is false.
| {boolean} | bShrinkable | New value for property shrinkable |
| {sap.m.ToolbarLayoutData} | Reference to this in order to allow method chaining |