This control is used within the GenericTile control.
Constructor for a new sap.m.TileContent control.
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.m.TileContent(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 |
---|---|---|---|
disabled | boolean | false | Disables control if true. Visibility: public |
footer | string | The footer text of the tile. Visibility: public |
|
footerColor | sap.m.ValueColor | Neutral | The semantic color of the footer. |
frameType | sap.m.FrameType | Auto | Frame types: 1x1, 2x1, and auto. Visibility: public |
priority | sap.ui.core.Priority | None | Adds a priority badge before the content. Works only in Generic Tile ActionMode. Visibility: public |
size | sap.m.Size | Auto | Updates the size of the tile. If it is not set, then the default size is applied based on the device tile. Visibility: public |
unit | string | The percent sign, the currency symbol, or the unit of measure. Visibility: public |
Default Aggregation: content
Name | Cardinality | Type | Description |
---|---|---|---|
content (default) | 0..1 | sap.ui.core.Control |
The switchable view that depends on the tile type. |
Method | Description |
---|---|
bindContent |
Binds aggregation content to model data. See ManagedObject.bindAggregation for a detailed description of the possible properties of |
destroyContent |
Destroys the content in the aggregation content. |
sap.m.TileContent.extend |
Creates a new subclass of class sap.m.TileContent with name
|
getContent |
Gets content of aggregation content. The switchable view that depends on the tile type. |
getDisabled |
Gets current value of property disabled. Disables control if true. Default value is |
getFooter |
Gets current value of property footer. The footer text of the tile. |
getFooterColor |
Gets current value of property footerColor. The semantic color of the footer. Default value is |
getFrameType |
Gets current value of property frameType. Frame types: 1x1, 2x1, and auto. Default value is |
sap.m.TileContent.getMetadata |
Returns a metadata object for class sap.m.TileContent. |
getPriority |
Gets current value of property priority. Adds a priority badge before the content. Works only in Generic Tile ActionMode. Default value is |
getSize |
Gets current value of property size. Updates the size of the tile. If it is not set, then the default size is applied based on the device tile. Default value is
Since 1.38.0 The TileContent control has now a fixed size, depending on the used media (desktop, tablet or phone).
|
getUnit |
Gets current value of property unit. The percent sign, the currency symbol, or the unit of measure. |
setContent |
Sets the aggregated content. |
setDisabled |
Sets a new value for property disabled. Disables control if true. When called with a value of Default value is |
setFooter |
Sets a new value for property footer. The footer text of the tile. When called with a value of |
setFooterColor |
Sets a new value for property footerColor. The semantic color of the footer. When called with a value of Default value is |
setFrameType |
Sets a new value for property frameType. Frame types: 1x1, 2x1, and auto. When called with a value of Default value is |
setPriority |
Sets a new value for property priority. Adds a priority badge before the content. Works only in Generic Tile ActionMode. When called with a value of Default value is |
setRenderContent |
Setter for protected property to enable or disable content rendering. This function does not invalidate the control. |
setRenderFooter |
Setter for protected property to enable or disable footer rendering. This function does not invalidate the control. |
setSize |
Sets a new value for property size. Updates the size of the tile. If it is not set, then the default size is applied based on the device tile. When called with a value of Default value is
Since 1.38.0 The TileContent control has now a fixed size, depending on the used media (desktop, tablet or phone).
|
setUnit |
Sets a new value for property unit. The percent sign, the currency symbol, or the unit of measure. When called with a value of |
unbindContent |
Unbinds aggregation content from model data. |
Binds aggregation content to model data.
See ManagedObject.bindAggregation for a detailed description of the possible properties of oBindingInfo
.
Param | Type | DefaultValue | Description |
---|---|---|---|
oBindingInfo | sap.ui.base.ManagedObject.AggregationBindingInfo |
The binding information |
Creates a new subclass of class sap.m.TileContent 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.
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 disabled.
Disables control if true.
Default value is false
.
Gets current value of property frameType.
Frame types: 1x1, 2x1, and auto.
Default value is "Auto"
.
Gets current value of property priority.
Adds a priority badge before the content. Works only in Generic Tile ActionMode.
Default value is None
.
Gets current value of property size.
Updates the size of the tile. If it is not set, then the default size is applied based on the device tile.
Default value is "Auto"
.
Gets current value of property unit.
The percent sign, the currency symbol, or the unit of measure.
Sets the aggregated content.
Param | Type | DefaultValue | Description |
---|---|---|---|
oContent | sap.ui.core.Control |
The content to set |
Sets a new value for property disabled.
Disables control if true.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is false
.
Param | Type | DefaultValue | Description |
---|---|---|---|
bDisabled | boolean | false |
New value for property |
Sets a new value for property frameType.
Frame types: 1x1, 2x1, and auto.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is "Auto"
.
Param | Type | DefaultValue | Description |
---|---|---|---|
sFrameType | sap.m.FrameType | "Auto" |
New value for property |
Sets a new value for property priority.
Adds a priority badge before the content. Works only in Generic Tile ActionMode.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is None
.
Param | Type | DefaultValue | Description |
---|---|---|---|
sPriority | sap.ui.core.Priority | None |
New value for property |
Setter for protected property to enable or disable content rendering. This function does not invalidate the control.
Param | Type | DefaultValue | Description |
---|---|---|---|
value | boolean |
Determines whether the control's content is rendered or not |
Sets a new value for property size.
Updates the size of the tile. If it is not set, then the default size is applied based on the device tile.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is "Auto"
.
Param | Type | DefaultValue | Description |
---|---|---|---|
sSize | sap.m.Size | "Auto" |
New value for property |
Sets a new value for property unit.
The percent sign, the currency symbol, or the unit of measure.
When called with a value of null
or undefined
, the default value of the property will be restored.
Param | Type | DefaultValue | Description |
---|---|---|---|
sUnit | string |
New value for property |