data class ColumnDefinition<T : Any>
Column definition options.
ColumnDefinition(title: String, field: String? = null, columns: List<ColumnDefinition<T>>? = null, visible: Boolean? = null, align: Align? = null, width: String? = null, minWidth: Int? = null, widthGrow: Int? = null, widthShrink: Int? = null, resizable: Boolean? = null, frozen: Boolean? = null, responsive: Int? = null, tooltip: ((cell: Tabulator.CellComponent) -> String)? = null, cssClass: String? = null, rowHandle: Boolean? = null, hideInHtml: Boolean? = null, sorter: Sorter? = null, sorterFunction: ((dynamic, dynamic, aRow: Tabulator.RowComponent, bRow: Tabulator.RowComponent, column: Tabulator.ColumnComponent, dir: SortingDir, dynamic) -> Number)? = null, sorterParams: dynamic = null, formatter: Formatter? = null, formatterFunction: ((cell: Tabulator.CellComponent, dynamic, onRendered: (callback: () -> Unit) -> Unit) -> dynamic)? = null, formatterComponentFunction: ((cell: Tabulator.CellComponent, onRendered: (callback: () -> Unit) -> Unit, data: T) -> Component)? = null, formatterParams: dynamic = null, variableHeight: Boolean? = null, editable: ((cell: Tabulator.CellComponent) -> Boolean)? = null, editor: Editor? = null, editorFunction: ((cell: Tabulator.CellComponent, onRendered: (callback: () -> Unit) -> Unit, success: (dynamic) -> Unit, cancel: (dynamic) -> Unit, dynamic) -> dynamic)? = null, editorComponentFunction: ((cell: Tabulator.CellComponent, onRendered: (callback: () -> Unit) -> Unit, success: (dynamic) -> Unit, cancel: (dynamic) -> Unit, data: T) -> Component)? = null, editorParams: dynamic = null, validator: Validator? = null, validatorFunction: dynamic = null, validatorParams: String? = null, download: Boolean? = null, downloadTitle: String? = null, topCalc: Calc? = null, topCalcParams: dynamic = null, topCalcFormatter: Formatter? = null, topCalcFormatterParams: dynamic = null, bottomCalc: Calc? = null, bottomCalcParams: dynamic = null, bottomCalcFormatter: Formatter? = null, bottomCalcFormatterParams: dynamic = null, headerSort: Boolean? = null, headerSortStartingDir: SortingDir? = null, headerSortTristate: Boolean? = null, headerClick: ((dynamic, column: Tabulator.ColumnComponent) -> Unit)? = null, headerDblClick: ((dynamic, column: Tabulator.ColumnComponent) -> Unit)? = null, headerContext: ((dynamic, column: Tabulator.ColumnComponent) -> Unit)? = null, headerTap: ((dynamic, column: Tabulator.ColumnComponent) -> Unit)? = null, headerDblTap: ((dynamic, column: Tabulator.ColumnComponent) -> Unit)? = null, headerTapHold: ((dynamic, column: Tabulator.ColumnComponent) -> Unit)? = null, headerTooltip: ((column: Tabulator.ColumnComponent) -> String)? = null, headerVertical: Boolean? = null, editableTitle: Boolean? = null, titleFormatter: Formatter? = null, titleFormatterParams: dynamic = null, headerFilter: Editor? = null, headerFilterParams: dynamic = null, headerFilterPlaceholder: String? = null, headerFilterEmptyCheck: ((value: Any) -> Boolean)? = null, headerFilterFunc: Filter? = null, headerFilterFuncParams: dynamic = null, headerFilterLiveFilter: Boolean? = null, htmlOutput: Boolean? = null, print: Boolean? = null, cellClick: ((dynamic, cell: Tabulator.CellComponent) -> Unit)? = null, cellDblClick: ((dynamic, cell: Tabulator.CellComponent) -> Unit)? = null, cellContext: ((dynamic, cell: Tabulator.CellComponent) -> Unit)? = null, cellTap: ((dynamic, cell: Tabulator.CellComponent) -> Unit)? = null, cellDblTap: ((dynamic, cell: Tabulator.CellComponent) -> Unit)? = null, cellTapHold: ((dynamic, cell: Tabulator.CellComponent) -> Unit)? = null, cellMouseEnter: ((dynamic, cell: Tabulator.CellComponent) -> Unit)? = null, cellMouseLeave: ((dynamic, cell: Tabulator.CellComponent) -> Unit)? = null, cellMouseOver: ((dynamic, cell: Tabulator.CellComponent) -> Unit)? = null, cellMouseOut: ((dynamic, cell: Tabulator.CellComponent) -> Unit)? = null, cellMouseMove: ((dynamic, cell: Tabulator.CellComponent) -> Unit)? = null, cellEditing: ((cell: Tabulator.CellComponent) -> Unit)? = null, cellEdited: ((cell: Tabulator.CellComponent) -> Unit)? = null, cellEditCancelled: ((cell: Tabulator.CellComponent) -> Unit)? = null)
Column definition options. |
val align: Align? |
|
val bottomCalc: Calc? |
|
val bottomCalcFormatter: Formatter? |
|
val bottomCalcFormatterParams: dynamic |
|
val bottomCalcParams: dynamic |
|
val cellClick: ((dynamic, cell: Tabulator.CellComponent) -> Unit)? |
|
val cellContext: ((dynamic, cell: Tabulator.CellComponent) -> Unit)? |
|
val cellDblClick: ((dynamic, cell: Tabulator.CellComponent) -> Unit)? |
|
val cellDblTap: ((dynamic, cell: Tabulator.CellComponent) -> Unit)? |
|
val cellEditCancelled: ((cell: Tabulator.CellComponent) -> Unit)? |
|
val cellEdited: ((cell: Tabulator.CellComponent) -> Unit)? |
|
val cellEditing: ((cell: Tabulator.CellComponent) -> Unit)? |
|
val cellMouseEnter: ((dynamic, cell: Tabulator.CellComponent) -> Unit)? |
|
val cellMouseLeave: ((dynamic, cell: Tabulator.CellComponent) -> Unit)? |
|
val cellMouseMove: ((dynamic, cell: Tabulator.CellComponent) -> Unit)? |
|
val cellMouseOut: ((dynamic, cell: Tabulator.CellComponent) -> Unit)? |
|
val cellMouseOver: ((dynamic, cell: Tabulator.CellComponent) -> Unit)? |
|
val cellTap: ((dynamic, cell: Tabulator.CellComponent) -> Unit)? |
|
val cellTapHold: ((dynamic, cell: Tabulator.CellComponent) -> Unit)? |
|
val columns: List<ColumnDefinition<T>>? |
|
val cssClass: String? |
|
val download: Boolean? |
|
val downloadTitle: String? |
|
val editable: ((cell: Tabulator.CellComponent) -> Boolean)? |
|
val editableTitle: Boolean? |
|
val editor: Editor? |
|
val editorComponentFunction: ((cell: Tabulator.CellComponent, onRendered: (callback: () -> Unit) -> Unit, success: (dynamic) -> Unit, cancel: (dynamic) -> Unit, data: T) -> Component)? |
|
val editorFunction: ((cell: Tabulator.CellComponent, onRendered: (callback: () -> Unit) -> Unit, success: (dynamic) -> Unit, cancel: (dynamic) -> Unit, dynamic) -> dynamic)? |
|
val editorParams: dynamic |
|
val field: String? |
|
val formatter: Formatter? |
|
val formatterComponentFunction: ((cell: Tabulator.CellComponent, onRendered: (callback: () -> Unit) -> Unit, data: T) -> Component)? |
|
val formatterFunction: ((cell: Tabulator.CellComponent, dynamic, onRendered: (callback: () -> Unit) -> Unit) -> dynamic)? |
|
val formatterParams: dynamic |
|
val frozen: Boolean? |
|
val headerClick: ((dynamic, column: Tabulator.ColumnComponent) -> Unit)? |
|
val headerContext: ((dynamic, column: Tabulator.ColumnComponent) -> Unit)? |
|
val headerDblClick: ((dynamic, column: Tabulator.ColumnComponent) -> Unit)? |
|
val headerDblTap: ((dynamic, column: Tabulator.ColumnComponent) -> Unit)? |
|
val headerFilter: Editor? |
|
val headerFilterEmptyCheck: ((value: Any) -> Boolean)? |
|
val headerFilterFunc: Filter? |
|
val headerFilterFuncParams: dynamic |
|
val headerFilterLiveFilter: Boolean? |
|
val headerFilterParams: dynamic |
|
val headerFilterPlaceholder: String? |
|
val headerSort: Boolean? |
|
val headerSortStartingDir: SortingDir? |
|
val headerSortTristate: Boolean? |
|
val headerTap: ((dynamic, column: Tabulator.ColumnComponent) -> Unit)? |
|
val headerTapHold: ((dynamic, column: Tabulator.ColumnComponent) -> Unit)? |
|
val headerTooltip: ((column: Tabulator.ColumnComponent) -> String)? |
|
val headerVertical: Boolean? |
|
val hideInHtml: Boolean? |
|
val htmlOutput: Boolean? |
|
val minWidth: Int? |
|
val print: Boolean? |
|
val resizable: Boolean? |
|
val responsive: Int? |
|
val rowHandle: Boolean? |
|
val sorter: Sorter? |
|
val sorterFunction: ((dynamic, dynamic, aRow: Tabulator.RowComponent, bRow: Tabulator.RowComponent, column: Tabulator.ColumnComponent, dir: SortingDir, dynamic) -> Number)? |
|
val sorterParams: dynamic |
|
val title: String |
|
val titleFormatter: Formatter? |
|
val titleFormatterParams: dynamic |
|
val tooltip: ((cell: Tabulator.CellComponent) -> String)? |
|
val topCalc: Calc? |
|
val topCalcFormatter: Formatter? |
|
val topCalcFormatterParams: dynamic |
|
val topCalcParams: dynamic |
|
val validator: Validator? |
|
val validatorFunction: dynamic |
|
val validatorParams: String? |
|
val variableHeight: Boolean? |
|
val visible: Boolean? |
|
val width: String? |
|
val widthGrow: Int? |
|
val widthShrink: Int? |
fun <T> Any?.createInstance(vararg args: dynamic): T
Helper function for creating JavaScript objects from dynamic constructors. |
|
fun <T : Any> ColumnDefinition<T>.toJs(i18nTranslator: (String) -> String): Tabulator.ColumnDefinition
An extension function to convert column definition class to JS object. |