Select, deselect, set, and hide bottom tab menu items at runtime from your website with the Median JavaScript Bridge.
A default tab menu can be defined in the app configuration and can be overwritten dynamically as required. Alternatively, the configuration can be left blank and all tab menus set by the website. The visibility of the tab menu can also be toggled dynamically at runtime.
Implementation guide
Select a tab
median.tabNavigation.selectTab(1);
Note: Tabs are 0-indexed, so median.tabNavigation.selectTab(1) selects the second tab.Parameters
number
required
Position of the tab to select, starting at 0. Pass it as the only argument.