kvision / pl.treksoft.kvision.tabulator / ColumnDefinition

ColumnDefinition

(js) data class ColumnDefinition<T : Any>

Column definition options.

Constructors

(js)

<init>

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: CellComponent) -> String)? = null, cssClass: String? = null, rowHandle: Boolean? = null, hideInHtml: Boolean? = null, sorter: Sorter? = null, sorterFunction: ((dynamic, dynamic, aRow: RowComponent, bRow: RowComponent, column: ColumnComponent, dir: SortingDir, dynamic) -> Number)? = null, sorterParams: dynamic = null, formatter: Formatter? = null, formatterFunction: ((cell: CellComponent, dynamic, onRendered: (callback: () -> Unit) -> Unit) -> dynamic)? = null, formatterComponentFunction: ((cell: CellComponent, onRendered: (callback: () -> Unit) -> Unit, data: T) -> Component)? = null, formatterParams: dynamic = null, variableHeight: Boolean? = null, editable: ((cell: CellComponent) -> Boolean)? = null, editor: Editor? = null, editorFunction: ((cell: CellComponent, onRendered: (callback: () -> Unit) -> Unit, success: (dynamic) -> Unit, cancel: (dynamic) -> Unit, dynamic) -> dynamic)? = null, editorComponentFunction: ((cell: 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: ColumnComponent) -> Unit)? = null, headerDblClick: ((dynamic, column: ColumnComponent) -> Unit)? = null, headerContext: ((dynamic, column: ColumnComponent) -> Unit)? = null, headerTap: ((dynamic, column: ColumnComponent) -> Unit)? = null, headerDblTap: ((dynamic, column: ColumnComponent) -> Unit)? = null, headerTapHold: ((dynamic, column: ColumnComponent) -> Unit)? = null, headerTooltip: ((column: 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: CellComponent) -> Unit)? = null, cellDblClick: ((dynamic, cell: CellComponent) -> Unit)? = null, cellContext: ((dynamic, cell: CellComponent) -> Unit)? = null, cellTap: ((dynamic, cell: CellComponent) -> Unit)? = null, cellDblTap: ((dynamic, cell: CellComponent) -> Unit)? = null, cellTapHold: ((dynamic, cell: CellComponent) -> Unit)? = null, cellMouseEnter: ((dynamic, cell: CellComponent) -> Unit)? = null, cellMouseLeave: ((dynamic, cell: CellComponent) -> Unit)? = null, cellMouseOver: ((dynamic, cell: CellComponent) -> Unit)? = null, cellMouseOut: ((dynamic, cell: CellComponent) -> Unit)? = null, cellMouseMove: ((dynamic, cell: CellComponent) -> Unit)? = null, cellEditing: ((cell: CellComponent) -> Unit)? = null, cellEdited: ((cell: CellComponent) -> Unit)? = null, cellEditCancelled: ((cell: CellComponent) -> Unit)? = null, headerMenu: dynamic = null, headerContextMenu: dynamic = null, contextMenu: dynamic = null, hozAlign: Align? = null, vertAlign: VAlign? = null)

Properties

(js)

align

val align: Align?
(js)

bottomCalc

val bottomCalc: Calc?
(js)

bottomCalcFormatter

val bottomCalcFormatter: Formatter?
(js)

bottomCalcFormatterParams

val bottomCalcFormatterParams: dynamic
(js)

bottomCalcParams

val bottomCalcParams: dynamic
(js)

cellClick

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

cellContext

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

cellDblClick

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

cellDblTap

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

cellEditCancelled

val cellEditCancelled: ((cell: CellComponent) -> Unit)?
(js)

cellEdited

val cellEdited: ((cell: CellComponent) -> Unit)?
(js)

cellEditing

val cellEditing: ((cell: CellComponent) -> Unit)?
(js)

cellMouseEnter

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

cellMouseLeave

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

cellMouseMove

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

cellMouseOut

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

cellMouseOver

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

cellTap

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

cellTapHold

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

columns

val columns: List<ColumnDefinition<T>>?
(js)

contextMenu

val contextMenu: dynamic
(js)

cssClass

val cssClass: String?
(js)

download

val download: Boolean?
(js)

downloadTitle

val downloadTitle: String?
(js)

editable

val editable: ((cell: CellComponent) -> Boolean)?
(js)

editableTitle

val editableTitle: Boolean?
(js)

editor

val editor: Editor?
(js)

editorComponentFunction

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

editorFunction

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

editorParams

val editorParams: dynamic
(js)

field

val field: String?
(js)

formatter

val formatter: Formatter?
(js)

formatterComponentFunction

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

formatterFunction

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

formatterParams

val formatterParams: dynamic
(js)

frozen

val frozen: Boolean?
(js)

headerClick

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

headerContext

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

headerContextMenu

val headerContextMenu: dynamic
(js)

headerDblClick

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

headerDblTap

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

headerFilter

val headerFilter: Editor?
(js)

headerFilterEmptyCheck

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

headerFilterFunc

val headerFilterFunc: Filter?
(js)

headerFilterFuncParams

val headerFilterFuncParams: dynamic
(js)

headerFilterLiveFilter

val headerFilterLiveFilter: Boolean?
(js)

headerFilterParams

val headerFilterParams: dynamic
(js)

headerFilterPlaceholder

val headerFilterPlaceholder: String?
(js)

headerMenu

val headerMenu: dynamic
(js)

headerSort

val headerSort: Boolean?
(js)

headerSortStartingDir

val headerSortStartingDir: SortingDir?
(js)

headerSortTristate

val headerSortTristate: Boolean?
(js)

headerTap

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

headerTapHold

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

headerTooltip

val headerTooltip: ((column: ColumnComponent) -> String)?
(js)

headerVertical

val headerVertical: Boolean?
(js)

hideInHtml

val hideInHtml: Boolean?
(js)

hozAlign

val hozAlign: Align?
(js)

htmlOutput

val htmlOutput: Boolean?
(js)

minWidth

val minWidth: Int?
(js)

print

val print: Boolean?
(js)

resizable

val resizable: Boolean?
(js)

responsive

val responsive: Int?
(js)

rowHandle

val rowHandle: Boolean?
(js)

sorter

val sorter: Sorter?
(js)

sorterFunction

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

sorterParams

val sorterParams: dynamic
(js)

title

val title: String
(js)

titleFormatter

val titleFormatter: Formatter?
(js)

titleFormatterParams

val titleFormatterParams: dynamic
(js)

tooltip

val tooltip: ((cell: CellComponent) -> String)?
(js)

topCalc

val topCalc: Calc?
(js)

topCalcFormatter

val topCalcFormatter: Formatter?
(js)

topCalcFormatterParams

val topCalcFormatterParams: dynamic
(js)

topCalcParams

val topCalcParams: dynamic
(js)

validator

val validator: Validator?
(js)

validatorFunction

val validatorFunction: dynamic
(js)

validatorParams

val validatorParams: String?
(js)

variableHeight

val variableHeight: Boolean?
(js)

vertAlign

val vertAlign: VAlign?
(js)

visible

val visible: Boolean?
(js)

width

val width: String?
(js)

widthGrow

val widthGrow: Int?
(js)

widthShrink

val widthShrink: Int?

Extension Functions

(js)

toJs

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

fun <T : Any> ColumnDefinition<T>.toJs(i18nTranslator: (String) -> String): ColumnDefinition