Tab
Multipage view with tabs.
Module | require("yue.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