addPage

fun addPage(pageName: String, element: Element): TablePager.Page

Adds a page wrapping the providen element, which fills the table.

Return

the created Page.


inline fun addPage(pageName: String, constructor: TablePager.Page.() -> Unit): TablePager.Page

Adds a page constructed by a lambda. Note that this method only constructs the page during the function invocation and then reuses it.

Return

the created page.


open fun addPage(name: String, page: Table): Cell<TextButton>

Deprecated (with error)

Backward compatibility method

Replace with

addPage(name, this as Element)