kvision / pl.treksoft.kvision.tabulator / ColumnDefinition

ColumnDefinition

data class ColumnDefinition<T : Any>

Column definition options.

Constructors

<init>

ColumnDefinition(title: String, field: String? = 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.

Properties

align

val align: Align?

bottomCalc

val bottomCalc: Calc?

bottomCalcFormatter

val bottomCalcFormatter: Formatter?

bottomCalcFormatterParams

val bottomCalcFormatterParams: dynamic

bottomCalcParams

val bottomCalcParams: dynamic

cellClick

val cellClick: ((dynamic, cell: Tabulator.CellComponent) -> Unit)?

cellContext

val cellContext: ((dynamic, cell: Tabulator.CellComponent) -> Unit)?

cellDblClick

val cellDblClick: ((dynamic, cell: Tabulator.CellComponent) -> Unit)?

cellDblTap

val cellDblTap: ((dynamic, cell: Tabulator.CellComponent) -> Unit)?

cellEditCancelled

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

cellEdited

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

cellEditing

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

cellMouseEnter

val cellMouseEnter: ((dynamic, cell: Tabulator.CellComponent) -> Unit)?

cellMouseLeave

val cellMouseLeave: ((dynamic, cell: Tabulator.CellComponent) -> Unit)?

cellMouseMove

val cellMouseMove: ((dynamic, cell: Tabulator.CellComponent) -> Unit)?

cellMouseOut

val cellMouseOut: ((dynamic, cell: Tabulator.CellComponent) -> Unit)?

cellMouseOver

val cellMouseOver: ((dynamic, cell: Tabulator.CellComponent) -> Unit)?

cellTap

val cellTap: ((dynamic, cell: Tabulator.CellComponent) -> Unit)?

cellTapHold

val cellTapHold: ((dynamic, cell: Tabulator.CellComponent) -> Unit)?

cssClass

val cssClass: String?

download

val download: Boolean?

downloadTitle

val downloadTitle: String?

editable

val editable: ((cell: Tabulator.CellComponent) -> Boolean)?

editableTitle

val editableTitle: Boolean?

editor

val editor: Editor?

editorComponentFunction

val editorComponentFunction: ((cell: Tabulator.CellComponent, onRendered: (callback: () -> Unit) -> Unit, success: (dynamic) -> Unit, cancel: (dynamic) -> Unit, data: T) -> Component)?

editorFunction

val editorFunction: ((cell: Tabulator.CellComponent, onRendered: (callback: () -> Unit) -> Unit, success: (dynamic) -> Unit, cancel: (dynamic) -> Unit, dynamic) -> dynamic)?

editorParams

val editorParams: dynamic

field

val field: String?

formatter

val formatter: Formatter?

formatterComponentFunction

val formatterComponentFunction: ((cell: Tabulator.CellComponent, onRendered: (callback: () -> Unit) -> Unit, data: T) -> Component)?

formatterFunction

val formatterFunction: ((cell: Tabulator.CellComponent, dynamic, onRendered: (callback: () -> Unit) -> Unit) -> dynamic)?

formatterParams

val formatterParams: dynamic

frozen

val frozen: Boolean?

headerClick

val headerClick: ((dynamic, column: Tabulator.ColumnComponent) -> Unit)?

headerContext

val headerContext: ((dynamic, column: Tabulator.ColumnComponent) -> Unit)?

headerDblClick

val headerDblClick: ((dynamic, column: Tabulator.ColumnComponent) -> Unit)?

headerDblTap

val headerDblTap: ((dynamic, column: Tabulator.ColumnComponent) -> Unit)?

headerFilter

val headerFilter: Editor?

headerFilterEmptyCheck

val headerFilterEmptyCheck: ((value: Any) -> Boolean)?

headerFilterFunc

val headerFilterFunc: Filter?

headerFilterFuncParams

val headerFilterFuncParams: dynamic

headerFilterLiveFilter

val headerFilterLiveFilter: Boolean?

headerFilterParams

val headerFilterParams: dynamic

headerFilterPlaceholder

val headerFilterPlaceholder: String?

headerSort

val headerSort: Boolean?

headerSortStartingDir

val headerSortStartingDir: SortingDir?

headerSortTristate

val headerSortTristate: Boolean?

headerTap

val headerTap: ((dynamic, column: Tabulator.ColumnComponent) -> Unit)?

headerTapHold

val headerTapHold: ((dynamic, column: Tabulator.ColumnComponent) -> Unit)?

headerTooltip

val headerTooltip: ((column: Tabulator.ColumnComponent) -> String)?

headerVertical

val headerVertical: Boolean?

hideInHtml

val hideInHtml: Boolean?

htmlOutput

val htmlOutput: Boolean?

minWidth

val minWidth: Int?

print

val print: Boolean?

resizable

val resizable: Boolean?

responsive

val responsive: Int?

rowHandle

val rowHandle: Boolean?

sorter

val sorter: Sorter?

sorterFunction

val sorterFunction: ((dynamic, dynamic, aRow: Tabulator.RowComponent, bRow: Tabulator.RowComponent, column: Tabulator.ColumnComponent, dir: SortingDir, dynamic) -> Number)?

sorterParams

val sorterParams: dynamic

title

val title: String

titleFormatter

val titleFormatter: Formatter?

titleFormatterParams

val titleFormatterParams: dynamic

tooltip

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

topCalc

val topCalc: Calc?

topCalcFormatter

val topCalcFormatter: Formatter?

topCalcFormatterParams

val topCalcFormatterParams: dynamic

topCalcParams

val topCalcParams: dynamic

validator

val validator: Validator?

validatorFunction

val validatorFunction: dynamic

validatorParams

val validatorParams: String?

variableHeight

val variableHeight: Boolean?

visible

val visible: Boolean?

width

val width: String?

widthGrow

val widthGrow: Int?

widthShrink

val widthShrink: 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> ColumnDefinition<T>.toJs(i18nTranslator: (String) -> String): Tabulator.ColumnDefinition

An extension function to convert column definition class to JS object.