Class sap.m.ToolbarSpacerModule: sap/m/ToolbarSpacer

extends Control

This control can be used to add horizontal space between toolbar items. Note: ToolbarLayoutData should not be used with this control.
Since: 1.16.
Constructor Summary
new sap.m.ToolbarSpacer(sId?, mSettings?)Constructor for a new ToolbarSpacer.
Field Summary
sap.m.ToolbarSpacer.flexClassFlexible Spacer Class Name
Events borrowed from class sap.ui.core.Control
Method Summary
sap.m.ToolbarSpacer.extend(sClassName, oClassInfo?, FNMetaImpl?)Creates a new subclass of class sap.m.ToolbarSpacer with name sClassName and enriches it with the information contained in oClassInfo.
sap.m.ToolbarSpacer.getMetadata()Returns a metadata object for class sap.m.ToolbarSpacer.
getWidth()Gets current value of property width.
setWidth(sWidth)Sets a new value for property width.
Constructor Detail
new sap.m.ToolbarSpacer(sId?, mSettings?)

Constructor for a new ToolbarSpacer.

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

    • width : sap.ui.core.CSSSize (default: )

In addition, all settings applicable to the base type sap.ui.core.Control can be used as well.

Parameters:
stringsId?id for the new control, generated automatically if no id is given
objectmSettings?initial settings for the new control
Field Detail
sap.m.ToolbarSpacer.flexClass
Flexible Spacer Class Name
Method Detail
sap.m.ToolbarSpacer.extend(sClassName, oClassInfo?, FNMetaImpl?): function

Creates a new subclass of class sap.m.ToolbarSpacer 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.Control.extend.

Parameters:
stringsClassNameName of the class being created
objectoClassInfo?Object literal with information about the class
functionFNMetaImpl?Constructor function for the metadata object; if not given, it defaults to sap.ui.core.ElementMetadata
Returns:
functionCreated class / constructor function
sap.m.ToolbarSpacer.getMetadata(): sap.ui.base.Metadata
Returns a metadata object for class sap.m.ToolbarSpacer.
Returns:
sap.ui.base.MetadataMetadata object describing this class
getWidth(): sap.ui.core.CSSSize

Gets current value of property width.

Defines the width of the horizontal space. Note: Empty("") value makes the space flexible which means it covers the remaining space between toolbar items. This feature can be used to push next item to the edge of the toolbar.

Default value is .

Returns:
sap.ui.core.CSSSizeValue of property width
setWidth(sWidth): sap.m.ToolbarSpacer

Sets a new value for property width.

Defines the width of the horizontal space. Note: Empty("") value makes the space flexible which means it covers the remaining space between toolbar items. This feature can be used to push next item to the edge of the toolbar.

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

Default value is .

Parameters:
sap.ui.core.CSSSizesWidthNew value for property width
Returns:
sap.m.ToolbarSpacerReference to this in order to allow method chaining