Bootstrap Badges for Xojo Web2.0 Controls

I’ve made a lightweight extension which allows you to add Bootstrap badges to Xojo Web2.0 Controls.

It looks like this:

BadgesOnLabels

BadgesOnPopupmenus

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)

6 Likes

Nice!

Thanks for sharing

1 Like
Forum for Xojo Programming Language and IDE. Copyright © 2021 Xojo, Inc.