A utility class to create and update a badge node.
Badge is not a widget, but a simple utility class for creating and updating a badge node. A badge consists of a simple DOM button. It is intended to be used from other widgets such as dojox/mobile/IconItem or dojox/mobile/TabBarButton.
Parameter | Type | Description |
---|---|---|
params | Object |
Optional Contains properties to be set. |
node | DomNode |
Optional The DOM node. If none is specified, it is automatically created. |
See the dojox/mobile/Badge reference documentation for more information.
Font size in pixel. The other style attributes are determined by the DOM button itself. Note that changing the value of the property after the badge creation has no effect.
A text to show in a badge. Note that changing the value of the property after the badge creation has no effect.
Set a label text to the badge.
Parameter | Type | Description |
---|---|---|
value | String |