B4J Question [BANanoVueMaterial] Update the text of a TabBadge

Mashiane

Expert
Licensed User
Longtime User
1. You create the tabs

B4X:
Dim tbstabs1 As VMTabs = vm.CreateTabs("tbstabs1", Me)

2. Create a tab panel with a badge (the badge value is set to zero)

B4X:
Dim conttabAttributes As VMContainer = CreateContainer_tabAttributes
    tbstabs1.AddTabBadge("tabAttributes", "Attributes", "mdi-shuriken", conttabAttributes, "0")

3. To update the tab badge value you call the following, using the tab-panel id

B4X:
vm.SetBadgeContent("tabAttributes", 10)

Ta!

PS: I will add a shortcut directly on the tab panel in next release, as much as each Tab has a Badge property.
 
Upvote 0
Top