Package-level declarations

Types

Link copied to clipboard
class CheckboxColumnSpec<T>(headerName: String, widthSetting: WidthSetting, valueSelector: (T) -> Boolean, onEdit: (rowIndex: Int, newValue: Boolean) -> Unit? = null) : ColumnSpec<T, Boolean>
Link copied to clipboard
sealed class ColumnSpec<T, S : Comparable<S>>
Link copied to clipboard
class DateColumnSpec<T>(headerName: String, widthSetting: WidthSetting, valueSelector: (T) -> LocalDate, val dateFormat: DateTimeFormat<LocalDate> = LocalDate.Formats.ISO, onEdit: (rowIndex: Int, newValue: LocalDate) -> Unit? = null) : ColumnSpec<T, LocalDate>
Link copied to clipboard
class DoubleColumnSpec<T>(headerName: String, widthSetting: WidthSetting, valueSelector: (T) -> Double, val formatToString: (Double) -> String = { it.toString() }, val parseToDouble: (String) -> Double = { it.toDouble() }, onEdit: (rowIndex: Int, newValue: Double) -> Unit? = null) : ColumnSpec<T, Double>
Link copied to clipboard
class DropdownColumnSpec<T, S : Comparable<S>>(headerName: String, widthSetting: WidthSetting, valueSelector: (T) -> S, val valueFormatter: (S) -> String = { it.toString() }, val choices: List<S>, onEdit: (rowIndex: Int, newValue: S) -> Unit? = null) : ColumnSpec<T, S>
Link copied to clipboard
class IntColumnSpec<T>(headerName: String, widthSetting: WidthSetting, valueSelector: (T) -> Int, val formatToString: (Int) -> String = { it.toString() }, val parseToInt: (String) -> Int = { it.toInt() }, onEdit: (rowIndex: Int, newValue: Int) -> Unit? = null) : ColumnSpec<T, Int>
Link copied to clipboard
class TextColumnSpec<T>(headerName: String, widthSetting: WidthSetting, valueSelector: (T) -> String, onEdit: (rowIndex: Int, newValue: String) -> Unit? = null) : ColumnSpec<T, String>
Link copied to clipboard
sealed class WidthSetting

Functions

Link copied to clipboard
fun <T> Table(columnSpecs: List<ColumnSpec<T, *>>, data: List<T>, modifier: Modifier = Modifier, showSelectionColumn: Boolean = false, onSelectionChange: (Set<T>) -> Unit = {}, showPaginationBar: Boolean = true, pageSizeOptions: List<Int> = listOf(10, 25, 50, 100), defaultPageSize: Int = 25)