Class sap.ui.commons.layout.PositionContainerModule: sap/ui/commons/layout/PositionContainer
Is used to specify the position of a control in the AbsoluteLayout
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
- top : sap.ui.core.CSSSize
- bottom : sap.ui.core.CSSSize
- left : sap.ui.core.CSSSize
- right : sap.ui.core.CSSSize
- centerHorizontally : boolean (default: false)
- centerVertically : boolean (default: false)
- Aggregations
- control : sap.ui.core.Control (default)
In addition, all settings applicable to the base type sap.ui.core.Element 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.Element.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 |
control
. {sap.ui.commons.layout.PositionContainer} | Reference to this in order to allow method chaining |
bottom
. Defines the distance to the bottom of the layout (as specified in HTML)
{sap.ui.core.CSSSize} | Value of property bottom |
centerHorizontally
. Indicates whether this container shall be centered horizontally within the AbsoluteLayout area. The values of the attributes left and right are ignored when this feature is activated.
Default value is false
.
{boolean} | Value of property centerHorizontally |
centerVertically
. Indicates whether this container should be centered vertically within the AbsoluteLayout area. The values of the attributes top and bottom are ignored when this feature is activated.
Default value is false
.
{boolean} | Value of property centerVertically |
control
. Child control of the position container
{sap.ui.core.Control} |
left
. Defines the distance to the left of the layout (as specified in HTML)
{sap.ui.core.CSSSize} | Value of property left |
right
. Defines the distance to the right of the layout (as specified in HTML)
{sap.ui.core.CSSSize} | Value of property right |
top
. Defines the distance to the top of the layout (as specified in HTML)
{sap.ui.core.CSSSize} | Value of property top |
bottom
. Defines the distance to the bottom of the layout (as specified in HTML)
When called with a value of null
or undefined
, the default value of the property will be restored.
{sap.ui.core.CSSSize} | sBottom | New value for property bottom |
{sap.ui.commons.layout.PositionContainer} | Reference to this in order to allow method chaining |
centerHorizontally
. Indicates whether this container shall be centered horizontally within the AbsoluteLayout area. The values of the attributes left and right are ignored when this feature is activated.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is false
.
{boolean} | bCenterHorizontally | New value for property centerHorizontally |
{sap.ui.commons.layout.PositionContainer} | Reference to this in order to allow method chaining |
centerVertically
. Indicates whether this container should be centered vertically within the AbsoluteLayout area. The values of the attributes top and bottom are ignored when this feature is activated.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is false
.
{boolean} | bCenterVertically | New value for property centerVertically |
{sap.ui.commons.layout.PositionContainer} | Reference to this in order to allow method chaining |
control
. {sap.ui.core.Control} | oControl | The control to set |
{sap.ui.commons.layout.PositionContainer} | Reference to this in order to allow method chaining |
left
. Defines the distance to the left of the layout (as specified in HTML)
When called with a value of null
or undefined
, the default value of the property will be restored.
{sap.ui.core.CSSSize} | sLeft | New value for property left |
{sap.ui.commons.layout.PositionContainer} | Reference to this in order to allow method chaining |
right
. Defines the distance to the right of the layout (as specified in HTML)
When called with a value of null
or undefined
, the default value of the property will be restored.
{sap.ui.core.CSSSize} | sRight | New value for property right |
{sap.ui.commons.layout.PositionContainer} | Reference to this in order to allow method chaining |
top
. Defines the distance to the top of the layout (as specified in HTML)
When called with a value of null
or undefined
, the default value of the property will be restored.
{sap.ui.core.CSSSize} | sTop | New value for property top |
{sap.ui.commons.layout.PositionContainer} | Reference to this in order to allow method chaining |
{object} | oPos | JSON-like object which defines the position of the child control in the absolute layout. The object is expected to have one or more out of the attributes top, bottom, left, right (each with a value of type sap.ui.core.CSSSize). If no object is given, nothing is updated. |