Class sap.m.TileContentModule: sap/m/TileContent

extends Control

This control is used within the GenericTile control.


Since: 1.34.
Constructor Summary
new sap.m.TileContent(sId?, mSettings?)Constructor for a new sap.m.TileContent control.
Events borrowed from class sap.ui.core.Control
Method Summary
sap.m.TileContent.extend(sClassName, oClassInfo?, FNMetaImpl?)Creates a new subclass of class sap.m.TileContent with name sClassName and enriches it with the information contained in oClassInfo.
sap.m.TileContent.getMetadata()Returns a metadata object for class sap.m.TileContent.
bindContent(oBindingInfo)Binds aggregation content to model data.
destroyContent()Destroys the content in the aggregation content.
getContent()Gets content of aggregation content.
getDisabled()Gets current value of property disabled.
getFooter()Gets current value of property footer.
getFrameType()Gets current value of property frameType.
getUnit()Gets current value of property unit.
setContent(oContent)Sets the aggregated content.
setDisabled(bDisabled)Sets a new value for property disabled.
setFooter(sFooter)Sets a new value for property footer.
setFrameType(sFrameType)Sets a new value for property frameType.
setRenderContent(value)Setter for protected property to enable or disable content rendering.
setRenderFooter(value)Setter for protected property to enable or disable footer rendering.
setUnit(sUnit)Sets a new value for property unit.
unbindContent()Unbinds aggregation content from model data.
getSize()Gets current value of property size.
setSize(sSize)Sets a new value for property size.
Constructor Detail
new sap.m.TileContent(sId?, mSettings?)
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 for a general description of the syntax of the settings object.

The supported settings are:

  • Properties
  • Aggregations
    • content : sap.ui.core.Control (default)

In addition, all settings applicable to the base type sap.ui.core.Control can be used as well.

Parameters:
{string}sId? id for the new control, generated automatically if no id is given
{object}mSettings? initial settings for the new control
Method Detail
sap.m.TileContent.extend(sClassName, oClassInfo?, FNMetaImpl?): function
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.

Parameters:
{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
Returns:
{function} Created class / constructor function
sap.m.TileContent.getMetadata(): sap.ui.base.Metadata
Returns a metadata object for class sap.m.TileContent.
Returns:
{sap.ui.base.Metadata} Metadata object describing this class
bindContent(oBindingInfo): sap.m.TileContent
Binds aggregation content to model data.

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

Parameters:
{object}oBindingInfo The binding information
Returns:
{sap.m.TileContent} Reference to this in order to allow method chaining
destroyContent(): sap.m.TileContent
Destroys the content in the aggregation content.
Returns:
{sap.m.TileContent} Reference to this in order to allow method chaining
getContent(): sap.ui.core.Control
Gets content of aggregation content.

The switchable view that depends on the tile type.

Returns:
{sap.ui.core.Control}
getDisabled(): boolean
Gets current value of property disabled.

Disables control if true.

Default value is false.

Since:
1.23
Returns:
{boolean} Value of property disabled
getFooter(): string
Gets current value of property footer.

The footer text of the tile.

Returns:
{string} Value of property footer
getFrameType(): sap.m.FrameType
Gets current value of property frameType.

The frame type: 1x1 or 2x1.

Default value is Auto.

Since:
1.25
Returns:
{sap.m.FrameType} Value of property frameType
getUnit(): string
Gets current value of property unit.

The percent sign, the currency symbol, or the unit of measure.

Returns:
{string} Value of property unit
setContent(oContent): sap.m.TileContent
Sets the aggregated content.
Parameters:
{sap.ui.core.Control}oContent The content to set
Returns:
{sap.m.TileContent} Reference to this in order to allow method chaining
setDisabled(bDisabled): sap.m.TileContent
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.

Parameters:
{boolean}bDisabled New value for property disabled
Since:
1.23
Returns:
{sap.m.TileContent} Reference to this in order to allow method chaining
setFooter(sFooter): sap.m.TileContent
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.

Parameters:
{string}sFooter New value for property footer
Returns:
{sap.m.TileContent} Reference to this in order to allow method chaining
setFrameType(sFrameType): sap.m.TileContent
Sets a new value for property frameType.

The frame type: 1x1 or 2x1.

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

Default value is Auto.

Parameters:
{sap.m.FrameType}sFrameType New value for property frameType
Since:
1.25
Returns:
{sap.m.TileContent} Reference to this in order to allow method chaining
setRenderContent(value): sap.m.TileContent
Setter for protected property to enable or disable content rendering. This function does not invalidate the control.
Parameters:
{boolean}value Determines whether the control's content is rendered or not
Returns:
{sap.m.TileContent} this To allow method chaining
setRenderFooter(value): sap.m.TileContent
Setter for protected property to enable or disable footer rendering. This function does not invalidate the control.
Parameters:
{boolean}value Determines whether the control's footer is rendered or not
Returns:
{sap.m.TileContent} this to allow method chaining
setUnit(sUnit): sap.m.TileContent
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.

Parameters:
{string}sUnit New value for property unit
Returns:
{sap.m.TileContent} Reference to this in order to allow method chaining
unbindContent(): sap.m.TileContent
Unbinds aggregation content from model data.
Returns:
{sap.m.TileContent} Reference to this in order to allow method chaining
getSize(): sap.m.Size
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.

Deprecated:
Since version 1.38.0. The TileContent control has now a fixed size, depending on the used media (desktop, tablet or phone).
Returns:
{sap.m.Size} Value of property size
setSize(sSize): sap.m.TileContent
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.

Parameters:
{sap.m.Size}sSize New value for property size
Deprecated:
Since version 1.38.0. The TileContent control has now a fixed size, depending on the used media (desktop, tablet or phone).
Returns:
{sap.m.TileContent} Reference to this in order to allow method chaining