kvision / pl.treksoft.kvision.tabulator

Package pl.treksoft.kvision.tabulator

Full-featured grid/table component based on the Tabulator library.

Types

(js)

AddRowMode

Add row modes.

enum class AddRowMode
(js)

Align

Column align.

enum class Align
(js)

Calc

Built-in calc functions.

enum class Calc
(js)

ColumnDefinition

Column definition options.

data class ColumnDefinition<T : Any>
(js)

ColumnPosition

Column positions.

enum class ColumnPosition
(js)

DataSet

Tabulator data set option.

enum class DataSet
(js)

DownloadConfig

Download config options.

data class DownloadConfig
(js)

Editor

Built-in editors.

enum class Editor
(js)

Filter

Filters.

enum class Filter
(js)

Formatter

Built-in formatters.

enum class Formatter
(js)

Layout

Table layouts.

enum class Layout
(js)

PaginationMode

Pagination modes.

enum class PaginationMode
(js)

ProgressiveMode

Progressive modes.

enum class ProgressiveMode
(js)

RangeMode

Range select modes.

enum class RangeMode
(js)

ResponsiveLayout

Responsive layout modes.

enum class ResponsiveLayout
(js)

RowPos

Row positions.

enum class RowPos
(js)

RowPosition

Row scroll positions .

enum class RowPosition
(js)

RowRangeLookup

Tabulator row range lookup set option.

enum class RowRangeLookup
(js)

Sorter

Built-in sorters.

enum class Sorter
(js)

SortingDir

Sorting directions.

enum class SortingDir
(js)

Tabulator

Tabulator component.

open class Tabulator<T : Any> : Widget
(js)

TabulatorOptions

Tabulator options.

data class TabulatorOptions<T : Any>
(js)

TabulatorRemote

Tabulator component connected to the multiplatform service.

open class TabulatorRemote<T : Any, E : Any> : Tabulator<T>
(js)

TooltipGenerationMode

Tooltip generation mode.

enum class TooltipGenerationMode
(js)

Validator

Built-in validators.

enum class Validator
(js)

VAlign

Column align.

enum class VAlign

Functions

(js)

tabulator

DSL builder extension function.

fun <T : Any> Container.tabulator(data: List<T>? = null, dataUpdateOnEdit: Boolean = true, options: TabulatorOptions<T> = TabulatorOptions(), types: Set<TableType> = setOf(), classes: Set<String>? = null, className: String? = null, init: (Tabulator<T>.() -> Unit)? = null): Tabulator<T>

DSL builder extension function for a general observable store.

fun <T : Any, S : Any> Container.tabulator(store: ObservableState<S>, dataFactory: (S) -> List<T>, options: TabulatorOptions<T> = TabulatorOptions(), types: Set<TableType> = setOf(), classes: Set<String>? = null, className: String? = null, init: (Tabulator<T>.() -> Unit)? = null): Tabulator<T>

DSL builder extension function for dynamic data (send within options parameter).

fun <T : Any> Container.tabulator(options: TabulatorOptions<T> = TabulatorOptions(), types: Set<TableType> = setOf(), classes: Set<String>? = null, className: String? = null, init: (Tabulator<T>.() -> Unit)? = null): Tabulator<T>
(js)

tabulatorRemote

DSL builder extension function.

fun <T : Any, E : Any> Container.tabulatorRemote(serviceManager: KVServiceManager<E>, function: suspend E.(Int?, Int?, List<RemoteFilter>?, List<RemoteSorter>?, String?) -> RemoteData<T>, stateFunction: (() -> String)? = null, options: TabulatorOptions<T> = TabulatorOptions(), types: Set<TableType> = setOf(), classes: Set<String>? = null, className: String? = null, init: (TabulatorRemote<T, E>.() -> Unit)? = null): TabulatorRemote<T, E>
(js)

toJs

An extension function to convert download config class to JS object.

fun DownloadConfig.toJs(): AddditionalExportOptions

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

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

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

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