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. 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
. bindContent(oBindingInfo)Binds aggregation content
to model data. getFooter()Gets current value of property footer
. getUnit()Gets current value of property unit
. 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
. getSize()Gets current value of property size
. setSize(sSize)Sets a new value for property size
. addStyleClass,
allowTextSelection,
attachBrowserEvent,
attachValidateFieldGroup,
checkFieldGroupIds,
clone,
detachBrowserEvent,
detachValidateFieldGroup,
fireValidateFieldGroup,
getAccessibilityInfo,
getBusy,
getBusyIndicatorDelay,
getControlsByFieldGroupId,
getFieldGroupIds,
getIdForLabel,
getRenderer,
getVisible,
hasStyleClass,
invalidate,
isBusy,
onBeforeRendering,
placeAt,
removeStyleClass,
rerender,
setBusy,
setBusyIndicatorDelay,
setFieldGroupIds,
setVisible,
toggleStyleClass,
triggerValidateFieldGroup $,
addCustomData,
addDependent,
addEventDelegate,
applyFocusInfo,
bindElement,
data,
destroy,
destroyCustomData,
destroyDependents,
destroyLayoutData,
destroyTooltip,
enhanceAccessibilityState,
exit,
findElements,
fireEvent,
focus,
getCustomData,
getDependents,
getDomRef,
getElementBinding,
getFocusDomRef,
getFocusInfo,
getInterface,
getLayoutData,
getMetadata,
getTooltip,
getTooltip_AsString,
getTooltip_Text,
indexOfCustomData,
indexOfDependent,
init,
insertCustomData,
insertDependent,
prop,
removeAllCustomData,
removeAllDependents,
removeCustomData,
removeDependent,
removeEventDelegate,
setLayoutData,
setTooltip,
toString,
unbindElement addAggregation,
addAssociation,
applySettings,
attachFormatError,
attachModelContextChange,
attachParseError,
attachValidationError,
attachValidationSuccess,
bindAggregation,
bindContext,
bindObject,
bindProperty,
destroyAggregation,
detachFormatError,
detachModelContextChange,
detachParseError,
detachValidationError,
detachValidationSuccess,
findAggregatedObjects,
fireFormatError,
fireModelContextChange,
fireParseError,
fireValidationError,
fireValidationSuccess,
getAggregation,
getAssociation,
getBinding,
getBindingContext,
getBindingInfo,
getBindingPath,
getEventingParent,
getId,
getModel,
getObjectBinding,
getOriginInfo,
getParent,
getProperty,
hasModel,
indexOfAggregation,
insertAggregation,
isBound,
isInvalidateSuppressed,
isTreeBinding,
propagateMessages,
removeAggregation,
removeAllAggregation,
removeAllAssociation,
removeAssociation,
setAggregation,
setAssociation,
setBindingContext,
setModel,
setProperty,
unbindAggregation,
unbindContext,
unbindObject,
unbindProperty,
validateAggregation,
validateProperty 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 |
Returns a metadata object for class sap.m.TileContent.
Returns:
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:
Destroys the content in the aggregation content
.
Returns:
Gets content of aggregation
content
.
The switchable view that depends on the tile type.
Returns:
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 |
Gets current value of property
frameType
.
The frame type: 1x1 or 2x1.
Default value is Auto
.
- Since:
- 1.25
Returns:
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 |
Sets the aggregated content
.
Parameters:
Returns:
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:
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:
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:
- Since:
- 1.25
Returns:
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:
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:
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:
Unbinds aggregation content
from model data.
Returns:
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:
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:
- Deprecated:
- Since version 1.38.0. The TileContent control has now a fixed size, depending on the used media (desktop, tablet or phone).
Returns: