Defines a range for the ResponsiveContainer
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 |
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 |
Name | Cardinality | Type | Description |
---|---|---|---|
content | 0..1 | sap.ui.core.Control |
The content to show for this range (optional). |
Method | Description |
---|---|
sap.ui.commons.ResponsiveContainerRange.extend |
Creates a new subclass of class sap.ui.commons.ResponsiveContainerRange with name
|
getContent |
ID of the element which is the current target of the association content, or |
getHeight |
Gets current value of property height. The minimal height for this range to be displayed. Default value is |
getKey |
Gets current value of property key. A key which can be used to identify the range (optional). Default value is |
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 |
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 Default value is |
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 Default value is |
setWidth |
Sets a new value for property width. The minimal width for this range to be displayed. When called with a value of Default value is |
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 |
Gets current value of property height.
The minimal height for this range to be displayed.
Default value is empty string
.
Gets current value of property key.
A key which can be used to identify the range (optional).
Default value is empty string
.
Returns a metadata object for class sap.ui.commons.ResponsiveContainerRange.
Gets current value of property width.
The minimal width for this range to be displayed.
Default value is empty string
.
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 |
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 |
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 |
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 |