Class WBadge


public class WBadge extends WText
A widget that represent a badge.

A badge is a short text, often shown against a contrasting background, which is used to convey important information at a glance.

For instance, in a shopping application, a badge with the word "new" can be added to an article to show that this article was recently added.

Another example is to add a badge next to the channel in a chat application to show the number of unread messages in that channel.

A WBadge is an inline WText with a specific look. This look is defined in any of JWt's themes. Either they are "Wt-badge" for the polished and default theme, or "badge" for any of the bootstrap themes. For more information on the latter visit Bootstrap's documentation

See Also: