kvision / pl.treksoft.kvision.tabulator.js / Tabulator

Tabulator

open external class Tabulator

Types

AjaxConfig

interface AjaxConfig

AjaxContentType

interface AjaxContentType

AutoCompleteParams

interface AutoCompleteParams

CellCallbacks

interface CellCallbacks

CellComponent

interface CellComponent

CellNavigation

interface CellNavigation

CheckboxParams

interface CheckboxParams

ClipboardConfig

interface ClipboardConfig

ColumnComponent

interface ColumnComponent

ColumnDefinition

interface ColumnDefinition : Tabulator.ColumnLayout, Tabulator.CellCallbacks

ColumnDefinitionSorterParams

interface ColumnDefinitionSorterParams

ColumnLayout

interface ColumnLayout

DateTimeDifferenceParams

interface DateTimeDifferenceParams : Tabulator.DateTimeParams

DateTimeParams

interface DateTimeParams

DownloadConfig

interface DownloadConfig

DownloadCSV

interface DownloadCSV

DownloadOptions

interface DownloadOptions : Tabulator.DownloadCSV, Tabulator.DownloadXLXS, Tabulator.DownloadPDF

DownloadPDF

interface DownloadPDF

DownloadXLXS

interface DownloadXLXS

Filter

interface Filter

GroupComponent

interface GroupComponent

ImageParams

interface ImageParams

KeyBinding

interface KeyBinding

LinkParams

interface LinkParams

MoneyParams

interface MoneyParams

NumberParams

interface NumberParams

Options

interface Options : Tabulator.OptionsGeneral, Tabulator.OptionsHistory, Tabulator.OptionsLocale, Tabulator.OptionsDownload, Tabulator.OptionsColumns, Tabulator.OptionsRows, Tabulator.OptionsData, Tabulator.OptionsSorting, Tabulator.OptionsFiltering, Tabulator.OptionsRowGrouping, Tabulator.OptionsPagination, Tabulator.OptionsPersistentConfiguration, Tabulator.OptionsClipboard, Tabulator.OptionsDataTree, Tabulator.OptionsCell

OptionsCell

interface OptionsCell

OptionsCells

interface OptionsCells : Tabulator.CellCallbacks

OptionsClipboard

interface OptionsClipboard

OptionsColumns

interface OptionsColumns

OptionsData

interface OptionsData

OptionsDataTree

interface OptionsDataTree

OptionsDownload

interface OptionsDownload

OptionsFiltering

interface OptionsFiltering

OptionsGeneral

interface OptionsGeneral

OptionsHistory

interface OptionsHistory

OptionsLocale

interface OptionsLocale

OptionsPagination

interface OptionsPagination

OptionsPersistentConfiguration

interface OptionsPersistentConfiguration

OptionsRowGrouping

interface OptionsRowGrouping

OptionsRows

interface OptionsRows

OptionsSorting

interface OptionsSorting

ProgressBarParams

interface ProgressBarParams : Tabulator.TrafficParams

RowComponent

interface RowComponent

SelectLabelValue

interface SelectLabelValue

SelectParams

interface SelectParams

SelectParamsGroup

interface SelectParamsGroup

Sorter

interface Sorter

StarRatingParams

interface StarRatingParams

TickCrossParams

interface TickCrossParams

TrafficParams

interface TrafficParams

Validator

interface Validator

Constructors

<init>

Tabulator(selector: String, options: Tabulator.Options? = definedExternally)
Tabulator(selector: <ERROR CLASS>, options: Tabulator.Options? = definedExternally)

Properties

browser

open var browser: String

browserSlow

open var browserSlow: Boolean

columnManager

open var columnManager: Any

footerManager

open var footerManager: Any

modules

open var modules: Any

options

open var options: Tabulator.Options

rowManager

open var rowManager: Any

Functions

addColumn

open fun addColumn(definition: Tabulator.ColumnDefinition, insertRightOfTarget: Boolean?, positionTarget: dynamic): Unit

addData

open fun addData(data: Array<Any>?, addToTop: Boolean?, positionTarget: dynamic): Promise<Tabulator.RowComponent>

addFilter

open fun addFilter(field: String, type: dynamic, value: Any): Unit

addRow

open fun addRow(data: Any?, addToTop: Boolean?, positionTarget: dynamic): Promise<Tabulator.RowComponent>

clearData

open fun clearData(): Unit

clearFilter

open fun clearFilter(includeHeaderFilters: Boolean): Unit

clearHeaderFilter

open fun clearHeaderFilter(): Unit

clearSort

open fun clearSort(): Unit

copyToClipboard

open fun copyToClipboard(type: dynamic): Unit

deleteColumn

open fun deleteColumn(column: dynamic): Unit

deleteRow

open fun deleteRow(row: dynamic): Unit

deselectRow

open fun deselectRow(row: dynamic): Unit

destroy

open fun destroy(): Unit

download

open fun download(downloadType: dynamic, fileName: String, params: Tabulator.DownloadOptions?): Unit

downloadToTab

open fun downloadToTab(downloadType: dynamic, fileName: String, params: Tabulator.DownloadOptions?): Unit

extendModule

open fun extendModule(name: String, property: String, values: Any): Unit

getAjaxUrl

open fun getAjaxUrl(): String

getCalcResults

open fun getCalcResults(): Any

getColumn

open fun getColumn(column: dynamic): Tabulator.ColumnComponent

getColumnDefinitions

open fun getColumnDefinitions(): Array<Tabulator.ColumnDefinition>

getColumnLayout

open fun getColumnLayout(): Array<Tabulator.ColumnLayout>

getColumns

open fun getColumns(includeColumnGroups: Boolean?): dynamic

getData

open fun getData(activeOnly: Boolean?): Array<Any>

getDataCount

open fun getDataCount(activeOnly: Boolean?): Number

getFilters

open fun getFilters(includeHeaderFilters: Boolean): Array<Tabulator.Filter>

getGroupedData

open fun getGroupedData(activeOnly: Boolean?): Any

getGroups

open fun getGroups(): Array<Tabulator.GroupComponent>

getHeaderFilters

open fun getHeaderFilters(): Array<Tabulator.Filter>

getHistoryRedoSize

open fun getHistoryRedoSize(): dynamic

getHistoryUndoSize

open fun getHistoryUndoSize(): dynamic

getHtml

open fun getHtml(activeOnly: Boolean?, isStyled: Boolean?, htmlOutputConfig: dynamic): String

getLang

open fun getLang(locale: String?): Any

getLocale

open fun getLocale(): String

getPage

open fun getPage(): dynamic

getPageMax

open fun getPageMax(): dynamic

getPageSize

open fun getPageSize(): Number

getRow

open fun getRow(row: dynamic): Tabulator.RowComponent

getRowFromPosition

open fun getRowFromPosition(position: Number, activeOnly: Boolean?): Unit

getRowPosition

open fun getRowPosition(row: dynamic, activeOnly: Boolean?): Number

getRows

open fun getRows(activeOnly: Boolean?): Array<Tabulator.RowComponent>

getSelectedData

open fun getSelectedData(): Array<Any>

getSelectedRows

open fun getSelectedRows(): Array<Tabulator.RowComponent>

getSorters

open fun getSorters(): Unit

hideColumn

open fun hideColumn(column: dynamic): Unit

moveRow

open fun moveRow(fromRow: dynamic, toRow: dynamic, placeAboveTarget: Boolean?): Unit

navigateDown

open fun navigateDown(): Unit

navigateLeft

open fun navigateLeft(): Unit

navigateNext

open fun navigateNext(): Unit

navigatePrev

open fun navigatePrev(): Unit

navigateRight

open fun navigateRight(): Unit

navigateUp

open fun navigateUp(): Unit

nextPage

open fun nextPage(): Promise<Unit>

previousPage

open fun previousPage(): Promise<Unit>

print

open fun print(activeOnly: Boolean?, isStyled: Boolean?, printConfig: dynamic): Unit

redo

open fun redo(): Boolean

redraw

open fun redraw(force: Boolean?): Unit

removeFilter

open fun removeFilter(field: String, type: dynamic, value: Any): Unit

replaceData

open fun replaceData(data: dynamic, params: Any?, config: Any?): Promise<Unit>

scrollToColumn

open fun scrollToColumn(column: dynamic, position: dynamic, ifVisible: Boolean?): Promise<Unit>

scrollToRow

open fun scrollToRow(row: dynamic, position: dynamic, ifVisible: Boolean?): Promise<Unit>

searchData

open fun searchData(field: String, type: dynamic, value: Any): Array<Any>

searchRows

open fun searchRows(field: String, type: dynamic, value: Any): Array<Tabulator.RowComponent>

selectRow

open fun selectRow(row: dynamic): Unit

setColumnLayout

open fun setColumnLayout(layout: Tabulator.ColumnLayout): Unit

setColumns

open fun setColumns(definitions: Array<Tabulator.ColumnDefinition>): Unit

setData

open fun setData(data: dynamic, params: Any?, config: Any?): Promise<Unit>

setDataFromLocalFile

open fun setDataFromLocalFile(extensions: String): Unit

setFilter

open fun setFilter(p1: dynamic, p2: dynamic, value: Any?): Unit

setGroupBy

open fun setGroupBy(groups: dynamic): Unit

setGroupHeader

open fun setGroupHeader(values: dynamic): Unit

setGroupStartOpen

open fun setGroupStartOpen(values: dynamic): Unit

setHeaderFilterFocus

open fun setHeaderFilterFocus(column: dynamic): Unit

setHeaderFilterValue

open fun setHeaderFilterValue(column: dynamic, value: String): Unit

setHeight

open fun setHeight(height: Number): Unit

setLocale

open fun setLocale(locale: dynamic): Unit

setMaxPage

open fun setMaxPage(max: Number): Unit

setPage

open fun setPage(page: dynamic): Promise<Unit>

setPageSize

open fun setPageSize(size: Number): Unit

setPageToRow

open fun setPageToRow(row: dynamic): Promise<Unit>

setSort

open fun setSort(sortList: dynamic, dir: dynamic): Unit

showColumn

open fun showColumn(column: dynamic): Unit

toggleColumn

open fun toggleColumn(column: dynamic): Unit

toggleSelectRow

open fun toggleSelectRow(row: dynamic): Unit

undo

open fun undo(): Boolean

updateData

open fun updateData(data: Array<Any>): Promise<Unit>

updateOrAddData

open fun updateOrAddData(data: Array<Any>): Promise<Array<Tabulator.RowComponent>>

updateOrAddRow

open fun updateOrAddRow(row: dynamic, data: Any): Promise<Tabulator.RowComponent>

updateRow

open fun updateRow(row: dynamic, data: Any): Boolean

Extension Functions

createInstance

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

Helper function for creating JavaScript objects from dynamic constructors.