TabLayout provides a horizontal layout to display tabs
TabLayout()
Construct an TabLayout
TabLayout id(id: string)
Set an id to identify a view
| Parameters | |
| id | id to identify a view |
| Return | |
| TabLayout | This TabLayout instance |
TabLayout tab(label: string, visibleIds: string[], hiddenIds: string[])
Add a tab
| Parameters | |
| label | Label text on the tab |
| visibleIds | Ids of the view to show when this tab is selected |
| hiddenIds | Ids of the view to hide when this tab is selected. null to hide every other views in the dialog |
| Return | |
| TabLayout | This TabLayout instance |
TabLayout select(index: number)
Select the default tab to open
| Parameters | |
| index | Index of the tab |
| Return | |
| TabLayout | This TabLayout instance |
TabLayout saveSelected(value: bool)
Remember last openned tab
| Parameters | |
| value | true to remember last openned tab |
| Return | |
| TabLayout | This TabLayout instance |
© 2025 - Macrorify by KoK-CODE