Tab
Multipage view with tabs.
Module | require("gui") |
Type | Class |
Inherits | View |
Class methods
create()
Create a new Tab
view.
Return
Tab
Methods
addPage(title, view)
Add view
as a new page with title
.
Parameters
String
titleView
view
removePage(view)
Remove the page that shows view
.
Parameters
View
view
pageCount()
Return the number of pages.
Return
Integer
pageAt(index)
Return the view of page at index
.
Parameters
Integer
index
Return
View
selectPageAt(index)
Select the page at index
.
Parameters
Integer
index
getSelectedPageIndex()
Return the index of selected page.
Return
Integer
getSelectedPage()
Return the view of selected page.
Return
View
Events
onSelectedPageChange(self)
Emitted when user has changed the selected page.
Programmatically changing the selected page will also emit the event.
Parameters
Tab
self