class sap.ui.commons.ResponsiveContainerRange

Visiblity: public
UX Guidelines:
Implements:
Available since: N/A
Module: sap/ui/commons/ResponsiveContainerRange
Application Component: CA-UI5-CTR

Defines a range for the ResponsiveContainer


Constructor

Constructor for a new ResponsiveContainerRange.

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.commons.ResponsiveContainerRange(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


Properties

Name Type Default Value Description
height sap.ui.core.CSSSize empty string

The minimal height for this range to be displayed.

Visibility: public
key string empty string

A key which can be used to identify the range (optional).

Visibility: public
width sap.ui.core.CSSSize empty string

The minimal width for this range to be displayed.

Visibility: public

Associations

Name Cardinality Type Description
content 0..1 sap.ui.core.Control

The content to show for this range (optional).


Methods Overview

Method Description
sap.ui.commons.ResponsiveContainerRange.extend

Creates a new subclass of class sap.ui.commons.ResponsiveContainerRange 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.Element.extend.

getContent

ID of the element which is the current target of the association content, or null.

getHeight

Gets current value of property height.

The minimal height for this range to be displayed.

Default value is empty string.

getKey

Gets current value of property key.

A key which can be used to identify the range (optional).

Default value is empty string.

sap.ui.commons.ResponsiveContainerRange.getMetadata

Returns a metadata object for class sap.ui.commons.ResponsiveContainerRange.

getWidth

Gets current value of property width.

The minimal width for this range to be displayed.

Default value is empty string.

setContent

Sets the associated content.

setHeight

Sets a new value for property height.

The minimal height for this range to be displayed.

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

Default value is empty string.

setKey

Sets a new value for property key.

A key which can be used to identify the range (optional).

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

Default value is empty string.

setWidth

Sets a new value for property width.

The minimal width for this range to be displayed.

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

Default value is empty string.

sap.ui.commons.ResponsiveContainerRange.extend

Creates a new subclass of class sap.ui.commons.ResponsiveContainerRange 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.Element.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

getContent

ID of the element which is the current target of the association content, or null.

getHeight

Gets current value of property height.

The minimal height for this range to be displayed.

Default value is empty string.

getKey

Gets current value of property key.

A key which can be used to identify the range (optional).

Default value is empty string.

sap.ui.commons.ResponsiveContainerRange.getMetadata

Returns a metadata object for class sap.ui.commons.ResponsiveContainerRange.

getWidth

Gets current value of property width.

The minimal width for this range to be displayed.

Default value is empty string.

setContent

Sets the associated content.

Param Type DefaultValue Description
oContent sap.ui.core.ID sap.ui.core.Control

ID of an element which becomes the new target of this content association; alternatively, an element instance may be given

setHeight

Sets a new value for property height.

The minimal height for this range to be displayed.

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

Default value is empty string.

Param Type DefaultValue Description
sHeight sap.ui.core.CSSSize ''

New value for property height

setKey

Sets a new value for property key.

A key which can be used to identify the range (optional).

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

Default value is empty string.

Param Type DefaultValue Description
sKey string ''

New value for property key

setWidth

Sets a new value for property width.

The minimal width for this range to be displayed.

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

Default value is empty string.

Param Type DefaultValue Description
sWidth sap.ui.core.CSSSize ''

New value for property width