Tab Layout

TabLayout provides a horizontal layout to display tabs

Constructor
TabLayout()

Construct an TabLayout

Methods
id
TabLayout id(id: string)

Set an id to identify a view

Parameters
id id to identify a view
Return
TabLayout This TabLayout instance
tab
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
select
TabLayout select(index: number)

Select the default tab to open

Parameters
index Index of the tab
Return
TabLayout This TabLayout instance
saveSelected
TabLayout saveSelected(value: bool)

Remember last openned tab

Parameters
value true to remember last openned tab
Return
TabLayout This TabLayout instance

© 2022 - Macrorify by KoK-CODE