Class sap.m.ToolbarLayoutDataModule: sap/m/ToolbarLayoutData

extends LayoutData
known direct subclasses: OverflowToolbarLayoutData

Defines layout data for the toolbar items.


Since: 1.20.
Constructor Summary
new sap.m.ToolbarLayoutData(sId?, mSettings?)Constructor for a new ToolbarLayoutData.
Method Summary
sap.m.ToolbarLayoutData.extend(sClassName, oClassInfo?, FNMetaImpl?)Creates a new subclass of class sap.m.ToolbarLayoutData with name sClassName and enriches it with the information contained in oClassInfo.
sap.m.ToolbarLayoutData.getMetadata()Returns a metadata object for class sap.m.ToolbarLayoutData.
getMaxWidth()Gets current value of property maxWidth.
getMinWidth()Gets current value of property minWidth.
getShrinkable()Gets current value of property shrinkable.
setMaxWidth(sMaxWidth)Sets a new value for property maxWidth.
setMinWidth(sMinWidth)Sets a new value for property minWidth.
setShrinkable(bShrinkable)Sets a new value for property shrinkable.
Constructor Detail
new sap.m.ToolbarLayoutData(sId?, mSettings?)
Constructor for a new ToolbarLayoutData.

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:

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

Sets the maximum width of the toolbar item.

Returns:
{sap.ui.core.CSSSize} Value of property maxWidth
getMinWidth(): sap.ui.core.CSSSize
Gets current value of property minWidth.

Sets the minimum width of the toolbar item.

Returns:
{sap.ui.core.CSSSize} Value of property minWidth
getShrinkable(): boolean
Gets current value of property 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.

Returns:
{boolean} Value of property shrinkable
setMaxWidth(sMaxWidth): sap.m.ToolbarLayoutData
Sets a new value for property 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.

Parameters:
{sap.ui.core.CSSSize}sMaxWidth New value for property maxWidth
Returns:
{sap.m.ToolbarLayoutData} Reference to this in order to allow method chaining
setMinWidth(sMinWidth): sap.m.ToolbarLayoutData
Sets a new value for property 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.

Parameters:
{sap.ui.core.CSSSize}sMinWidth New value for property minWidth
Returns:
{sap.m.ToolbarLayoutData} Reference to this in order to allow method chaining
setShrinkable(bShrinkable): sap.m.ToolbarLayoutData
Sets a new value for property 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.

Parameters:
{boolean}bShrinkable New value for property shrinkable
Returns:
{sap.m.ToolbarLayoutData} Reference to this in order to allow method chaining