new TabPanel()
Example
let tabpanel = new TabPanel()
.setSize(12);
.append(new Tab()
.setTitle("Formulário")
.setContent(boxContainer1))
.append(new Tab()
.setTitle("Tab 2")
.setContent(boxContainer2))
.append(new Tab()
setTitle("Tab 3")
.setContent(boxContainer3))
let page:ViewPager = new ViewPager()
.append(tabpanel)
.appendTo("body");
Methods
-
closeAll()
-
Fecha todas as abas do TabPanel.
Returns:
- Type
- TabPanel
-
setActive(tab)
-
Dasabilita ou habilita uma aba pelo indice dela.
Parameters:
Name Type Description tabnumber indice da aba.
Returns:
- Type
- TabPanel
-
setPlacement(placement)
-
Configura o positionamento das abas no inicio do TabPanel ou no fim.
Parameters:
Name Type Description placementETabPlacement Returns:
- Type
- TabPanel
