I’ve made a lightweight extension which allows you to add Bootstrap badges to Xojo Web2.0 Controls.
It looks like this:
It currently works on Labels, Buttons and Popupmenus. More will be added over time.
If you want to use it, just download it from Github
https://github.com/FAESCH/Xojo-Web2.0-Bootstrap-Extensions
It’s really easy to use:
Label:
Weblabel.AddBadge(Text as String, Indicator as WebUIControl.Indicators = WebUIControl.Indicators.Default)
Button:
WebButton.AddBadge(Text as String, Indicator as WebUIControl.Indicators = WebUIControl.Indicators.Default)
Popupmenu
WebPopupmenu.AddBadgeAt(Row as Integer, Text as String, Indicator as WebUIControl.Indicators = WebUIControl.Indicators.Default)