Column
data class Column<T>(id: String, lens: Lens<T, String>?, title: String, minWidth: Property?, maxWidth: Property?, hidden: Boolean, position: Int, sorting: Sorting, sortBy: Comparator<T>?, styling: BasicParams.(value: IndexedValue<StatefulItem<T>>) -> Unit, content: Td.(value: IndexedValue<StatefulItem<T>>, cellStore: Store<String>?, rowStore: SubStore<List<T>, List<T>, T>) -> Unit, headerStyling: BasicParams.(sorting: Sorting) -> Unit, headerContent: Div.(column: Column<T>) -> Unit)
Content copied to clipboard
Main class to define the representation of the data class `T` of one table column. This class mainly is the result of the DSL configuration of the datatable.
Besides the main properties like the header title string or the Lens to grab the current String representation of the row data during the rendering process, one can also specify the sorting algorithm to fit the specific type (like a Date for example) or the appearance of the cell styling and content or the header styling and content.
Constructors
Column
Link copied to clipboard
fun <T> Column(id: String, lens: Lens<T, String>? = null, title: String = "", minWidth: Property? = null, maxWidth: Property? = null, hidden: Boolean = false, position: Int = 0, sorting: Sorting = Sorting.NONE, sortBy: Comparator<T>? = null, styling: BasicParams.(value: IndexedValue<StatefulItem<T>>) -> Unit = { _ -> }, content: Td.(value: IndexedValue<StatefulItem<T>>, cellStore: Store<String>?, rowStore: SubStore<List<T>, List<T>, T>) -> Unit, headerStyling: BasicParams.(sorting: Sorting) -> Unit = {}, headerContent: Div.(column: Column<T>) -> Unit)
Content copied to clipboard
Functions
component1
Link copied to clipboard
component10
Link copied to clipboard
operator fun component10(): BasicParams.(value: IndexedValue<StatefulItem<T>>) -> Unit
Content copied to clipboard
component11
Link copied to clipboard
operator fun component11(): Td.(value: IndexedValue<StatefulItem<T>>, cellStore: Store<String>?, rowStore: SubStore<List<T>, List<T>, T>) -> Unit
Content copied to clipboard
component12
Link copied to clipboard
component13
Link copied to clipboard
component2
Link copied to clipboard
component3
Link copied to clipboard
component4
Link copied to clipboard
component5
Link copied to clipboard
component6
Link copied to clipboard
component7
Link copied to clipboard
component8
Link copied to clipboard
component9
Link copied to clipboard
copy
Link copied to clipboard
fun copy(id: String, lens: Lens<T, String>? = null, title: String = "", minWidth: Property? = null, maxWidth: Property? = null, hidden: Boolean = false, position: Int = 0, sorting: Sorting = Sorting.NONE, sortBy: Comparator<T>? = null, styling: BasicParams.(value: IndexedValue<StatefulItem<T>>) -> Unit = { _ -> }, content: Td.(value: IndexedValue<StatefulItem<T>>, cellStore: Store<String>?, rowStore: SubStore<List<T>, List<T>, T>) -> Unit, headerStyling: BasicParams.(sorting: Sorting) -> Unit = {}, headerContent: Div.(column: Column<T>) -> Unit): Column<T>
Content copied to clipboard
Properties
headerContent
Link copied to clipboard
headerStyling
Link copied to clipboard
sortBy
Link copied to clipboard
styling
Link copied to clipboard