kvision / pl.treksoft.kvision.tabulator / TabulatorOptions

TabulatorOptions

data class TabulatorOptions<T : Any>

Tabulator options.

Constructors

<init>

TabulatorOptions(height: String? = null, virtualDom: Boolean? = null, virtualDomBuffer: Int? = null, placeholder: String? = null, footerElement: String? = null, tooltips: ((cell: Tabulator.CellComponent) -> String)? = null, tooltipGenerationMode: TooltipGenerationMode? = null, history: Boolean? = null, keybindings: dynamic = null, downloadDataFormatter: dynamic = null, downloadConfig: DownloadConfig? = null, reactiveData: Boolean? = null, autoResize: Boolean? = null, columns: List<ColumnDefinition<T>>? = null, autoColumns: Boolean? = null, layout: Layout? = null, layoutColumnsOnNewData: Boolean? = null, responsiveLayout: ResponsiveLayout? = null, responsiveLayoutCollapseStartOpen: Boolean? = null, responsiveLayoutCollapseUseFormatters: Boolean? = null, columnMinWidth: Int? = null, resizableColumns: Boolean? = null, movableColumns: Boolean? = null, tooltipsHeader: Boolean? = null, headerFilterPlaceholder: String? = null, scrollToColumnPosition: ColumnPosition? = null, scrollToColumnIfVisible: Boolean? = null, rowFormatter: ((row: Tabulator.RowComponent) -> Unit)? = null, addRowPos: RowPos? = null, selectable: dynamic = null, selectableRangeMode: RangeMode? = null, selectableRollingSelection: Boolean? = null, selectablePersistence: Boolean? = null, selectableCheck: ((row: Tabulator.RowComponent) -> Boolean)? = null, movableRows: Boolean? = null, movableRowsConnectedTables: dynamic = null, movableRowsSender: dynamic = null, movableRowsReceiver: dynamic = null, resizableRows: Boolean? = null, scrollToRowPosition: RowPosition? = null, scrollToRowIfVisible: Boolean? = null, index: String? = null, data: Array<dynamic>? = null, ajaxURL: String? = null, ajaxParams: dynamic = null, ajaxConfig: dynamic = null, ajaxContentType: dynamic = null, ajaxURLGenerator: ((url: String, dynamic, dynamic) -> String)? = null, ajaxRequestFunc: ((url: String, dynamic, dynamic) -> Promise<Any>)? = null, ajaxFiltering: Boolean? = null, ajaxSorting: Boolean? = null, ajaxProgressiveLoad: ProgressiveMode? = null, ajaxProgressiveLoadDelay: Int? = null, ajaxProgressiveLoadScrollMargin: Int? = null, ajaxLoader: Boolean? = null, ajaxLoaderLoading: String? = null, ajaxLoaderError: String? = null, initialSort: List<Tabulator.Sorter>? = null, sortOrderReverse: Boolean? = null, initialFilter: List<Tabulator.Filter>? = null, initialHeaderFilter: List<Any?>? = null, pagination: PaginationMode? = null, paginationSize: Int? = null, paginationSizeSelector: Boolean? = null, paginationElement: dynamic = null, paginationDataReceived: dynamic = null, paginationDataSent: dynamic = null, paginationAddRow: AddRowMode? = null, paginationButtonCount: Int? = null, persistenceID: String? = null, persistenceMode: Boolean? = null, persistentLayout: Boolean? = null, persistentSort: Boolean? = null, persistentFilter: Boolean? = null, locale: String? = null, langs: dynamic = null, localized: ((locale: String, dynamic) -> Unit)? = null, dataTreeRowExpanded: ((row: Tabulator.RowComponent, level: Number) -> Unit)? = null, dataTreeRowCollapsed: ((row: Tabulator.RowComponent, level: Number) -> Unit)? = null, movableRowsSendingStart: ((toTables: Array<Any>) -> Unit)? = null, movableRowsSent: ((fromRow: Tabulator.RowComponent, toRow: Tabulator.RowComponent, toTable: Tabulator) -> Unit)? = null, movableRowsSentFailed: ((fromRow: Tabulator.RowComponent, toRow: Tabulator.RowComponent, toTable: Tabulator) -> Unit)? = null, movableRowsSendingStop: ((toTables: Array<Any>) -> Unit)? = null, movableRowsReceivingStart: ((fromRow: Tabulator.RowComponent, toTable: Tabulator) -> Unit)? = null, movableRowsReceived: ((fromRow: Tabulator.RowComponent, toRow: Tabulator.RowComponent, fromTable: Tabulator) -> Unit)? = null, movableRowsReceivedFailed: ((fromRow: Tabulator.RowComponent, toRow: Tabulator.RowComponent, fromTable: Tabulator) -> Unit)? = null, movableRowsReceivingStop: ((fromTable: Tabulator) -> Unit)? = null, rowClick: ((dynamic, row: Tabulator.RowComponent) -> Unit)? = null, rowDblClick: ((dynamic, row: Tabulator.RowComponent) -> Unit)? = null, rowContext: ((dynamic, row: Tabulator.RowComponent) -> Unit)? = null, rowTap: ((dynamic, row: Tabulator.RowComponent) -> Unit)? = null, rowDblTap: ((dynamic, row: Tabulator.RowComponent) -> Unit)? = null, rowTapHold: ((dynamic, row: Tabulator.RowComponent) -> Unit)? = null, rowMouseEnter: ((dynamic, row: Tabulator.RowComponent) -> Unit)? = null, rowMouseLeave: ((dynamic, row: Tabulator.RowComponent) -> Unit)? = null, rowMouseOver: ((dynamic, row: Tabulator.RowComponent) -> Unit)? = null, rowMouseOut: ((dynamic, row: Tabulator.RowComponent) -> Unit)? = null, rowMouseMove: ((dynamic, row: Tabulator.RowComponent) -> Unit)? = null, rowAdded: ((row: Tabulator.RowComponent) -> Unit)? = null, rowUpdated: ((row: Tabulator.RowComponent) -> Unit)? = null, rowDeleted: ((row: Tabulator.RowComponent) -> Unit)? = null, rowMoved: ((row: Tabulator.RowComponent) -> Unit)? = null, rowResized: ((row: Tabulator.RowComponent) -> Unit)? = null, rowSelectionChanged: ((data: Array<Any>, rows: Array<Tabulator.RowComponent>) -> Unit)? = null, rowSelected: ((row: Tabulator.RowComponent) -> Unit)? = null, rowDeselected: ((row: Tabulator.RowComponent) -> Unit)? = null, cellClick: ((e: Any, cell: Tabulator.CellComponent) -> Unit)? = null, cellDblClick: ((e: Any, cell: Tabulator.CellComponent) -> Unit)? = null, cellContext: ((e: Any, cell: Tabulator.CellComponent) -> Unit)? = null, cellTap: ((e: Any, cell: Tabulator.CellComponent) -> Unit)? = null, cellDblTap: ((e: Any, cell: Tabulator.CellComponent) -> Unit)? = null, cellTapHold: ((e: Any, cell: Tabulator.CellComponent) -> Unit)? = null, cellMouseEnter: ((e: Any, cell: Tabulator.CellComponent) -> Unit)? = null, cellMouseLeave: ((e: Any, cell: Tabulator.CellComponent) -> Unit)? = null, cellMouseOver: ((e: Any, cell: Tabulator.CellComponent) -> Unit)? = null, cellMouseOut: ((e: Any, cell: Tabulator.CellComponent) -> Unit)? = null, cellMouseMove: ((e: Any, cell: Tabulator.CellComponent) -> Unit)? = null, cellEditing: ((cell: Tabulator.CellComponent) -> Unit)? = null, cellEdited: ((cell: Tabulator.CellComponent) -> Unit)? = null, cellEditCancelled: ((cell: Tabulator.CellComponent) -> Unit)? = null, columnMoved: ((column: Tabulator.ColumnComponent, columns: Array<dynamic>) -> Unit)? = null, columnResized: ((column: Tabulator.ColumnComponent) -> Unit)? = null, columnVisibilityChanged: ((column: Tabulator.ColumnComponent, visible: Boolean) -> Unit)? = null, columnTitleChanged: ((column: Tabulator.ColumnComponent) -> Unit)? = null, tableBuilding: (() -> Unit)? = null, tableBuilt: (() -> Unit)? = null, renderStarted: (() -> Unit)? = null, renderComplete: (() -> Unit)? = null, htmlImporting: (() -> Unit)? = null, htmlImported: (() -> Unit)? = null, dataLoading: ((data: Any) -> Unit)? = null, dataLoaded: ((data: Any) -> Unit)? = null, dataEdited: ((data: Any) -> Unit)? = null, pageLoaded: ((pageno: Int) -> Unit)? = null, dataSorting: ((sorters: Array<Tabulator.Sorter>) -> Unit)? = null, dataSorted: ((sorters: Array<Tabulator.Sorter>, rows: Array<Tabulator.RowComponent>) -> Unit)? = null, dataFiltering: ((filters: Array<Tabulator.Filter>) -> Unit)? = null, dataFiltered: ((filters: Array<Tabulator.Filter>, rows: Array<Tabulator.RowComponent>) -> Unit)? = null, validationFailed: ((cell: Tabulator.CellComponent, value: Any, dynamic) -> Unit)? = null, ajaxRequesting: ((url: String, dynamic) -> Boolean)? = null, ajaxResponse: ((url: String, dynamic, dynamic) -> Any)? = null, ajaxError: ((dynamic, textStatus: String, dynamic) -> Unit)? = null)

Tabulator options.

Properties

addRowPos

val addRowPos: RowPos?

ajaxConfig

val ajaxConfig: dynamic

ajaxContentType

val ajaxContentType: dynamic

ajaxError

var ajaxError: ((dynamic, textStatus: String, dynamic) -> Unit)?

ajaxFiltering

val ajaxFiltering: Boolean?

ajaxLoader

val ajaxLoader: Boolean?

ajaxLoaderError

val ajaxLoaderError: String?

ajaxLoaderLoading

val ajaxLoaderLoading: String?

ajaxParams

val ajaxParams: dynamic

ajaxProgressiveLoad

val ajaxProgressiveLoad: ProgressiveMode?

ajaxProgressiveLoadDelay

val ajaxProgressiveLoadDelay: Int?

ajaxProgressiveLoadScrollMargin

val ajaxProgressiveLoadScrollMargin: Int?

ajaxRequestFunc

val ajaxRequestFunc: ((url: String, dynamic, dynamic) -> Promise<Any>)?

ajaxRequesting

var ajaxRequesting: ((url: String, dynamic) -> Boolean)?

ajaxResponse

var ajaxResponse: ((url: String, dynamic, dynamic) -> Any)?

ajaxSorting

val ajaxSorting: Boolean?

ajaxURL

val ajaxURL: String?

ajaxURLGenerator

val ajaxURLGenerator: ((url: String, dynamic, dynamic) -> String)?

autoColumns

val autoColumns: Boolean?

autoResize

val autoResize: Boolean?

cellClick

var cellClick: ((e: Any, cell: Tabulator.CellComponent) -> Unit)?

cellContext

var cellContext: ((e: Any, cell: Tabulator.CellComponent) -> Unit)?

cellDblClick

var cellDblClick: ((e: Any, cell: Tabulator.CellComponent) -> Unit)?

cellDblTap

var cellDblTap: ((e: Any, cell: Tabulator.CellComponent) -> Unit)?

cellEditCancelled

var cellEditCancelled: ((cell: Tabulator.CellComponent) -> Unit)?

cellEdited

var cellEdited: ((cell: Tabulator.CellComponent) -> Unit)?

cellEditing

var cellEditing: ((cell: Tabulator.CellComponent) -> Unit)?

cellMouseEnter

var cellMouseEnter: ((e: Any, cell: Tabulator.CellComponent) -> Unit)?

cellMouseLeave

var cellMouseLeave: ((e: Any, cell: Tabulator.CellComponent) -> Unit)?

cellMouseMove

var cellMouseMove: ((e: Any, cell: Tabulator.CellComponent) -> Unit)?

cellMouseOut

var cellMouseOut: ((e: Any, cell: Tabulator.CellComponent) -> Unit)?

cellMouseOver

var cellMouseOver: ((e: Any, cell: Tabulator.CellComponent) -> Unit)?

cellTap

var cellTap: ((e: Any, cell: Tabulator.CellComponent) -> Unit)?

cellTapHold

var cellTapHold: ((e: Any, cell: Tabulator.CellComponent) -> Unit)?

columnMinWidth

val columnMinWidth: Int?

columnMoved

var columnMoved: ((column: Tabulator.ColumnComponent, columns: Array<dynamic>) -> Unit)?

columnResized

var columnResized: ((column: Tabulator.ColumnComponent) -> Unit)?

columns

val columns: List<ColumnDefinition<T>>?

columnTitleChanged

var columnTitleChanged: ((column: Tabulator.ColumnComponent) -> Unit)?

columnVisibilityChanged

var columnVisibilityChanged: ((column: Tabulator.ColumnComponent, visible: Boolean) -> Unit)?

data

var data: Array<dynamic>?

dataEdited

var dataEdited: ((data: Any) -> Unit)?

dataFiltered

var dataFiltered: ((filters: Array<Tabulator.Filter>, rows: Array<Tabulator.RowComponent>) -> Unit)?

dataFiltering

var dataFiltering: ((filters: Array<Tabulator.Filter>) -> Unit)?

dataLoaded

var dataLoaded: ((data: Any) -> Unit)?

dataLoading

var dataLoading: ((data: Any) -> Unit)?

dataSorted

var dataSorted: ((sorters: Array<Tabulator.Sorter>, rows: Array<Tabulator.RowComponent>) -> Unit)?

dataSorting

var dataSorting: ((sorters: Array<Tabulator.Sorter>) -> Unit)?

dataTreeRowCollapsed

val dataTreeRowCollapsed: ((row: Tabulator.RowComponent, level: Number) -> Unit)?

dataTreeRowExpanded

val dataTreeRowExpanded: ((row: Tabulator.RowComponent, level: Number) -> Unit)?

downloadConfig

val downloadConfig: DownloadConfig?

downloadDataFormatter

val downloadDataFormatter: dynamic

footerElement

val footerElement: String?

headerFilterPlaceholder

val headerFilterPlaceholder: String?

height

val height: String?

history

val history: Boolean?

htmlImported

var htmlImported: (() -> Unit)?

htmlImporting

var htmlImporting: (() -> Unit)?

index

val index: String?

initialFilter

val initialFilter: List<Tabulator.Filter>?

initialHeaderFilter

val initialHeaderFilter: List<Any?>?

initialSort

val initialSort: List<Tabulator.Sorter>?

keybindings

val keybindings: dynamic

langs

var langs: dynamic

layout

val layout: Layout?

layoutColumnsOnNewData

val layoutColumnsOnNewData: Boolean?

locale

val locale: String?

localized

val localized: ((locale: String, dynamic) -> Unit)?

movableColumns

val movableColumns: Boolean?

movableRows

val movableRows: Boolean?

movableRowsConnectedTables

val movableRowsConnectedTables: dynamic

movableRowsReceived

val movableRowsReceived: ((fromRow: Tabulator.RowComponent, toRow: Tabulator.RowComponent, fromTable: Tabulator) -> Unit)?

movableRowsReceivedFailed

val movableRowsReceivedFailed: ((fromRow: Tabulator.RowComponent, toRow: Tabulator.RowComponent, fromTable: Tabulator) -> Unit)?

movableRowsReceiver

val movableRowsReceiver: dynamic

movableRowsReceivingStart

val movableRowsReceivingStart: ((fromRow: Tabulator.RowComponent, toTable: Tabulator) -> Unit)?

movableRowsReceivingStop

val movableRowsReceivingStop: ((fromTable: Tabulator) -> Unit)?

movableRowsSender

val movableRowsSender: dynamic

movableRowsSendingStart

val movableRowsSendingStart: ((toTables: Array<Any>) -> Unit)?

movableRowsSendingStop

val movableRowsSendingStop: ((toTables: Array<Any>) -> Unit)?

movableRowsSent

val movableRowsSent: ((fromRow: Tabulator.RowComponent, toRow: Tabulator.RowComponent, toTable: Tabulator) -> Unit)?

movableRowsSentFailed

val movableRowsSentFailed: ((fromRow: Tabulator.RowComponent, toRow: Tabulator.RowComponent, toTable: Tabulator) -> Unit)?

pageLoaded

var pageLoaded: ((pageno: Int) -> Unit)?

pagination

val pagination: PaginationMode?

paginationAddRow

val paginationAddRow: AddRowMode?

paginationButtonCount

val paginationButtonCount: Int?

paginationDataReceived

val paginationDataReceived: dynamic

paginationDataSent

val paginationDataSent: dynamic

paginationElement

val paginationElement: dynamic

paginationSize

val paginationSize: Int?

paginationSizeSelector

val paginationSizeSelector: Boolean?

persistenceID

var persistenceID: String?

persistenceMode

var persistenceMode: Boolean?

persistentFilter

var persistentFilter: Boolean?

persistentLayout

var persistentLayout: Boolean?

persistentSort

var persistentSort: Boolean?

placeholder

val placeholder: String?

reactiveData

val reactiveData: Boolean?

renderComplete

var renderComplete: (() -> Unit)?

renderStarted

var renderStarted: (() -> Unit)?

resizableColumns

val resizableColumns: Boolean?

resizableRows

val resizableRows: Boolean?

responsiveLayout

val responsiveLayout: ResponsiveLayout?

responsiveLayoutCollapseStartOpen

val responsiveLayoutCollapseStartOpen: Boolean?

responsiveLayoutCollapseUseFormatters

val responsiveLayoutCollapseUseFormatters: Boolean?

rowAdded

var rowAdded: ((row: Tabulator.RowComponent) -> Unit)?

rowClick

var rowClick: ((dynamic, row: Tabulator.RowComponent) -> Unit)?

rowContext

var rowContext: ((dynamic, row: Tabulator.RowComponent) -> Unit)?

rowDblClick

var rowDblClick: ((dynamic, row: Tabulator.RowComponent) -> Unit)?

rowDblTap

var rowDblTap: ((dynamic, row: Tabulator.RowComponent) -> Unit)?

rowDeleted

var rowDeleted: ((row: Tabulator.RowComponent) -> Unit)?

rowDeselected

var rowDeselected: ((row: Tabulator.RowComponent) -> Unit)?

rowFormatter

val rowFormatter: ((row: Tabulator.RowComponent) -> Unit)?

rowMouseEnter

var rowMouseEnter: ((dynamic, row: Tabulator.RowComponent) -> Unit)?

rowMouseLeave

var rowMouseLeave: ((dynamic, row: Tabulator.RowComponent) -> Unit)?

rowMouseMove

var rowMouseMove: ((dynamic, row: Tabulator.RowComponent) -> Unit)?

rowMouseOut

var rowMouseOut: ((dynamic, row: Tabulator.RowComponent) -> Unit)?

rowMouseOver

var rowMouseOver: ((dynamic, row: Tabulator.RowComponent) -> Unit)?

rowMoved

var rowMoved: ((row: Tabulator.RowComponent) -> Unit)?

rowResized

var rowResized: ((row: Tabulator.RowComponent) -> Unit)?

rowSelected

var rowSelected: ((row: Tabulator.RowComponent) -> Unit)?

rowSelectionChanged

var rowSelectionChanged: ((data: Array<Any>, rows: Array<Tabulator.RowComponent>) -> Unit)?

rowTap

var rowTap: ((dynamic, row: Tabulator.RowComponent) -> Unit)?

rowTapHold

var rowTapHold: ((dynamic, row: Tabulator.RowComponent) -> Unit)?

rowUpdated

var rowUpdated: ((row: Tabulator.RowComponent) -> Unit)?

scrollToColumnIfVisible

val scrollToColumnIfVisible: Boolean?

scrollToColumnPosition

val scrollToColumnPosition: ColumnPosition?

scrollToRowIfVisible

val scrollToRowIfVisible: Boolean?

scrollToRowPosition

val scrollToRowPosition: RowPosition?

selectable

val selectable: dynamic

selectableCheck

val selectableCheck: ((row: Tabulator.RowComponent) -> Boolean)?

selectablePersistence

val selectablePersistence: Boolean?

selectableRangeMode

val selectableRangeMode: RangeMode?

selectableRollingSelection

val selectableRollingSelection: Boolean?

sortOrderReverse

val sortOrderReverse: Boolean?

tableBuilding

var tableBuilding: (() -> Unit)?

tableBuilt

var tableBuilt: (() -> Unit)?

tooltipGenerationMode

val tooltipGenerationMode: TooltipGenerationMode?

tooltips

val tooltips: ((cell: Tabulator.CellComponent) -> String)?

tooltipsHeader

val tooltipsHeader: Boolean?

validationFailed

var validationFailed: ((cell: Tabulator.CellComponent, value: Any, dynamic) -> Unit)?

virtualDom

val virtualDom: Boolean?

virtualDomBuffer

val virtualDomBuffer: Int?

Extension Functions

createInstance

fun <T> Any?.createInstance(vararg args: dynamic): T

Helper function for creating JavaScript objects from dynamic constructors.

toJs

fun <T : Any> TabulatorOptions<T>.toJs(i18nTranslator: (String) -> String, dataSerializer: KSerializer<T>? = null): Tabulator.Options

An extension function to convert tabulator options class to JS object.