DataTableState

class DataTableState<T : DataTableItem>(columns: List<DataTableColumn>, items: List<T> = [])

Constructors

Link copied to clipboard
constructor(columns: List<DataTableColumn>, items: List<T> = [])

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val rows: List<T>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun add(item: T): Boolean
Link copied to clipboard
fun addAll(items: Collection<T>): Boolean
Link copied to clipboard
fun addColumn(column: DataTableColumn, index: Int = columnList.size)
Link copied to clipboard
inline fun <reified C : DataTableCell> cell(row: Int, column: Int): C
Link copied to clipboard
fun clear()
Link copied to clipboard
Link copied to clipboard
fun clearSort()
Link copied to clipboard
Link copied to clipboard
fun editCell(row: Int, column: Int)
Link copied to clipboard
operator fun get(row: Int): T
Link copied to clipboard
fun moveColumn(from: Int, to: Int)
Link copied to clipboard
fun moveRow(from: Int, to: Int)
Link copied to clipboard
fun remove(item: T): Boolean
fun remove(row: Int): T
Link copied to clipboard
Link copied to clipboard
operator fun set(row: Int, item: T)
Link copied to clipboard
fun toggleSort(column: Int)