removeTab(INTEGER tabIndex)
Removes the Tab by index. Method will remove the WebView for the specific tab, it will not remove the tab from the tab array, so all indexes will remain the same.You cannot delete the tab with useCurrentViewForTab flag.If you switch to previously removed tab, tab will be recreated.
Parameters
- tabIndex : INTEGER
The index for tab (index numbered from 0) to delete.
- callback : CallBackHandler
Returns
Synchronous Return:
- Void
Platforms
- Windows Mobile
Method Access:
- Class Method: This method can only be accessed via the API class object.
EB.NativeTabbar.removeTab(INTEGER tabIndex)
switchTab(INTEGER tabIndex)
Switch active tab.
Parameters
- tabIndex : INTEGER
The index for this tab (index numbered from 0).
- callback : CallBackHandler
Returns
Synchronous Return:
- Void
Platforms
- Android
- Windows Mobile
- Windows CE
Method Access:
- Class Method: This method can only be accessed via the API class object.
EB.NativeTabbar.switchTab(INTEGER tabIndex)
Remarks
Device Limitations With Multiple Tabs
Please consider the limitations of the device when creating multiple tabs with the Native TabBar. The number of tabs that can be created will depend on the resources of the device and the complexities of the pages displayed in those tabs but, as a general rule, a maximum of 10 tabs on an MC75a should be enforced. Also consider setting the createOnInit
property to false so that not all tabs are initialized when the TabBar is first created and using the in-process engine for a more responsive experience.