Tab

Multipage view with tabs.

Modulerequire("gui")
TypeClass
InheritsView

Class methods

create()

Create a new Tab view.

Return

Tab

Methods

addPage(title, view)

Add view as a new page with title.

Parameters

removePage(view)

Remove the page that shows view.

Parameters

pageCount()

Return the number of pages.

Return

Integer

pageAt(index)

Return the view of page at index.

Parameters

Return

View

selectPageAt(index)

Select the page at index.

Parameters

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

Preventable

No.