class sap.m.TileContent

Control sample: sap.m.TileContent
Visiblity: public
UX Guidelines:
Implements:
Available since: N/A
Module: sap/m/TileContent
Application Component: CA-UI5-SC

This control is used within the GenericTile control.


Constructor

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


Properties

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.

Since: 1.44.

Visibility: public
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

Aggregations

Default Aggregation: content

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

The switchable view that depends on the tile type.


Methods Overview

Method Description
bindContent

Binds aggregation content to model data.

See ManagedObject.bindAggregation for a detailed description of the possible properties of oBindingInfo.

destroyContent

Destroys the content in the aggregation content.

sap.m.TileContent.extend

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.

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 false.

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 "Neutral".

getFrameType

Gets current value of property frameType.

Frame types: 1x1, 2x1, and auto.

Default value is "Auto".

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 None.

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 "Auto".

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 null or undefined, the default value of the property will be restored.

Default value is false.

setFooter

Sets a new value for property footer.

The footer text of the tile.

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

setFooterColor

Sets a new value for property footerColor.

The semantic color of the footer.

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

Default value is "Neutral".

setFrameType

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".

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 null or undefined, the default value of the property will be restored.

Default value is None.

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 null or undefined, the default value of the property will be restored.

Default value is "Auto".

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 null or undefined, the default value of the property will be restored.

unbindContent

Unbinds aggregation content from model data.

bindContent

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

destroyContent

Destroys the content in the aggregation content.

sap.m.TileContent.extend

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

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 false.

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 "Neutral".

getFrameType

Gets current value of property frameType.

Frame types: 1x1, 2x1, and auto.

Default value is "Auto".

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 None.

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 "Auto".

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.

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

The content to set

setDisabled

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 disabled

setFooter

Sets a new value for property footer.

The footer text of the tile.

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

Param Type DefaultValue Description
sFooter string

New value for property footer

setFooterColor

Sets a new value for property footerColor.

The semantic color of the footer.

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

Default value is "Neutral".

Param Type DefaultValue Description
sFooterColor sap.m.ValueColor "Neutral"

New value for property footerColor

setFrameType

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 frameType

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 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 priority

setRenderContent

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

setRenderFooter

Setter for protected property to enable or disable footer rendering. This function does not invalidate the control.

Param Type DefaultValue Description
value boolean

Determines whether the control's footer is rendered or not

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 null or undefined, the default value of the property will be restored.

Default value is "Auto".

Since 1.38.0 The TileContent control has now a fixed size, depending on the used media (desktop, tablet or phone).
Param Type DefaultValue Description
sSize sap.m.Size "Auto"

New value for property size

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 null or undefined, the default value of the property will be restored.

Param Type DefaultValue Description
sUnit string

New value for property unit

unbindContent

Unbinds aggregation content from model data.