Mashiane Expert Licensed User Longtime User Oct 21, 2020 #2 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
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.