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.
Name | Type | Default Value | Description |
---|---|---|---|
animation | sap.m.BadgeAnimationType | Full | Determines the type of animation to be performed by the Badge DOM element. |
visible | boolean | true | Visibility: public |
Method | Description |
---|---|
sap.m.BadgeCustomData.extend |
Creates a new subclass of class sap.m.BadgeCustomData with name
|
getAnimation |
Gets current value of property animation. Determines the type of animation to be performed by the Badge DOM element. Default value is |
sap.m.BadgeCustomData.getMetadata |
Returns a metadata object for class sap.m.BadgeCustomData. |
getVisible |
Gets current value of property visible. Default value is |
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 Default value is |
setVisible |
Sets a new value for property visible. When called with a value of Default value is |
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 |
Gets current value of property animation.
Determines the type of animation to be performed by the Badge DOM element.
Default value is Full
.
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 |
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 |