open class TabulatorRemote<T : Any, E : Any> : Tabulator<T>
Tabulator component connected to the multiplatform service.
TabulatorRemote(serviceManager: KVServiceManager<E>, function: E.(Int?, Int?, List<<ERROR CLASS>>?, List<<ERROR CLASS>>?) -> <ERROR CLASS><T>, options: TabulatorOptions<T> = TabulatorOptions(), types: Set<TableType> = setOf(), classes: Set<String> = setOf()) |
val data: List<T>?
a list of objects |
|
val dataUpdateOnEdit: Boolean
determines if the data model is automatically updated after tabulator edit action |
|
var filter: ((T) -> Boolean)? |
|
var jsTabulator: Tabulator?
Native Tabulator object. |
|
val options: TabulatorOptions<T>
tabulator options |
|
var types: Set<TableType>
Table types. |
open fun addColumn(columnDefinition: ColumnDefinition<T>, insertRightOfTarget: Boolean? = null, positionTarget: String? = null): Unit open fun addColumn(columnDefinition: Tabulator.ColumnDefinition, insertRightOfTarget: Boolean? = null, positionTarget: String? = null): Unit
Add new column to the tabulator. |
|
open fun afterDestroy(): Unit
Method called after destroying Snabbdom vnode. |
|
open fun afterInsert(node: VNode): Unit
Method called after inserting Snabbdom vnode into the DOM. |
|
open fun applyFilter(): Unit
Applies the current filter. |
|
open fun clearData(): Unit?
Clears the data in the table. |
|
open fun clearFilter(includeHeaderFilters: Boolean = true): Unit
Clears current filters. |
|
open fun clearHeaderFilter(): Unit
Clears header filters. |
|
open fun clearSort(): Unit
Clears current sort. |
|
fun createJsTabulator(): Unit
Creates internal JS Tabulator object |
|
open fun deleteColumn(name: String): Unit
Delete column by name. |
|
open fun deselectRow(row: Int): Unit
Deselect the row given by id. |
|
open fun getColumn(name: String): Tabulator.ColumnComponent?
Get column component by name. |
|
open fun getData(active: Boolean): List<T>?
Returns the current data in the table. |
|
open fun getDataCount(activeOnly: Boolean = false): Int
Get the number of data rows. |
|
open fun getHistoryRedoSize(): Int
Get the number of history redo actions available. |
|
open fun getHistoryUndoSize(): Int
Get the number of history undo actions available. |
|
open fun getHtml(activeOnly: Boolean = false, isStyled: Boolean = false, htmlOutputConfig: dynamic = null): String?
Get the HTML code of the table. |
|
open fun getPage(): Int
Returns current page number. |
|
open fun getPageMax(): Int
Returns number of pages. |
|
open fun getPageSize(): Int
Returns the size of a page. |
|
open fun getSelectedData(): List<T>
Returns the selected data in the table. |
|
open fun getSelectedRows(): List<Tabulator.RowComponent>
Returns the selected rows. |
|
open fun getSnClass(): List<StringBoolPair>
Returns list of CSS class names for current widget in the form of a List. |
|
open fun navigateDown(): Unit
Navigate to the same cell in the row below. |
|
open fun navigateLeft(): Unit
Navigate to the cell on the left. |
|
open fun navigateNext(): Unit
Navigate to the next cell. |
|
open fun navigatePrev(): Unit
Navigate to the previous cell. |
|
open fun navigateRight(): Unit
Navigate to the cell on the right. |
|
open fun navigateUp(): Unit
Navigate to the same cell in the row above. |
|
open fun nextPage(): Unit
Navigate to the next page. |
|
open fun previousPage(): Unit
Navigate to the previous page. |
|
open fun print(activeOnly: Boolean = false, isStyled: Boolean = false, printConfig: dynamic = null): Unit?
Print the table. |
|
open fun redo(): Boolean
Redo the last undone user action. |
|
open fun redraw(force: Boolean = false): Unit
Redraw the table (e.g. after a resize). |
|
open fun render(): VNode
Renders current component as a Snabbdom vnode. |
|
open fun replaceData(data: Array<T>): Unit
Silently replaces the data in a table. |
|
open fun scrollToRow(row: Int, position: RowPosition? = null, ifVisible: Boolean? = null): Unit
Scroll to the row given by id. |
|
open fun selectRow(row: Int): Unit
Select the row given by id. |
|
open fun setData(data: Array<T>): Unit
Sets new data in a table. |
|
open fun setFilter(filter: (T) -> Boolean): Unit
Sets the external filter for the data. |
|
open fun setHeight(height: Int): Unit
Change the height of the table. |
|
open fun setPage(page: Int): Unit
Shows given page. |
|
open fun setPageSize(size: Int): Unit
Set the size of a page. |
|
open fun setPageToRow(row: Int): Unit
Shows page with a row given by id. |
|
open fun toggleSelectRow(row: Int): Unit
Toggle selection status of the row given by id. |
|
open fun undo(): Boolean
Undo the last user action. |
fun <T : Any, E : Any> Container.tabulatorRemote(serviceManager: KVServiceManager<E>, function: E.(Int?, Int?, List<<ERROR CLASS>>?, List<<ERROR CLASS>>?) -> <ERROR CLASS><T>, options: TabulatorOptions<T> = TabulatorOptions(), types: Set<TableType> = setOf(), classes: Set<String> = setOf(), init: (TabulatorRemote<T, E>.() -> Unit)? = null): TabulatorRemote<T, E>
DSL builder extension function. |
fun <T> Any?.createInstance(vararg args: dynamic): T
Helper function for creating JavaScript objects from dynamic constructors. |