A helper class for implementing the sap.m.IBadge interface.
The class represents a utility for visualising and updating the badge
indicator for sap.ui.core.Control
instances. It should be created once per IBadge
instance.
On its initialization,
position
- accepts three predefined string values which add relative CSS classes to the badge element and position it accordingly: topLeft
, topRight
and inline
accentColor
- accepts string values equal to theme-specific accent colors. For more information, see the SAP Fiori Design Guidelines
selector
- accepts Object, containing one property which is named either selector
or suffix
. If no selector is passed, the main ID of the control is automatically set as selector value.