class sap.m.BadgeCustomData

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

Contains a single key/value pair of custom data attached to an Element.

For more information, see Element.prototype.data and Custom Data - Attaching Data Objects to Controls.


Constructor

Constructor for a new BadgeCustomData element.

new sap.m.BadgeCustomData(sId?, mSettings?)
Param Type Default Value Description
sId? string

ID for the new element, generated automatically if no ID is given

mSettings? object

Initial settings for the new element


Properties

Name Type Default Value Description
animation sap.m.BadgeAnimationType Full

Determines the type of animation to be performed by the Badge DOM element.

Since: 1.87.

Visibility: public
visible boolean true Visibility: public

Methods Overview

Method Description
sap.m.BadgeCustomData.extend

Creates a new subclass of class sap.m.BadgeCustomData 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.CustomData.extend.

getAnimation

Gets current value of property animation.

Determines the type of animation to be performed by the Badge DOM element.

Default value is Full.

sap.m.BadgeCustomData.getMetadata

Returns a metadata object for class sap.m.BadgeCustomData.

getVisible

Gets current value of property visible.

Default value is true.

setAnimation

Sets a new value for property animation.

Determines the type of animation to be performed by the Badge DOM element.

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

Default value is Full.

setVisible

Sets a new value for property visible.

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

Default value is true.

sap.m.BadgeCustomData.extend

Creates a new subclass of class sap.m.BadgeCustomData 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.CustomData.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

getAnimation

Gets current value of property animation.

Determines the type of animation to be performed by the Badge DOM element.

Default value is Full.

sap.m.BadgeCustomData.getMetadata

Returns a metadata object for class sap.m.BadgeCustomData.

getVisible

Gets current value of property visible.

Default value is true.

setAnimation

Sets a new value for property animation.

Determines the type of animation to be performed by the Badge DOM element.

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

Default value is Full.

Param Type DefaultValue Description
sAnimation sap.m.BadgeAnimationType Full

New value for property animation

setVisible

Sets a new value for property visible.

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

Default value is true.

Param Type DefaultValue Description
bVisible boolean true

New value for property visible