Header

data class Header<T>(styling: BasicParams.(sorting: Sorting) -> Unit, content: Div.(column: Column<T>) -> Unit)

This context class manages the configuration and defines the DSL for the header of one column.

A header definition looks like this:

header ({ sorting ->
if(sorting) {
background { color { primary.highlight } }
} else {
background { color { primary } }
}
}) { column -> // *stateless* container of a column with initial configuration data!
+"${column.title}-Column" // just enhance the title
}

Constructors

Header
Link copied to clipboard
js
fun <T> Header(styling: BasicParams.(sorting: Sorting) -> Unit = {}, content: Div.(column: Column<T>) -> Unit = { column -> +column.title })

Functions

component1
Link copied to clipboard
js
operator fun component1(): BasicParams.(sorting: Sorting) -> Unit
component2
Link copied to clipboard
js
operator fun component2(): Div.(column: Column<T>) -> Unit
copy
Link copied to clipboard
js
fun copy(styling: BasicParams.(sorting: Sorting) -> Unit = {}, content: Div.(column: Column<T>) -> Unit = { column -> +column.title }): ColumnsContext.ColumnContext.Header<T>
equals
Link copied to clipboard
js
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
js
open override fun hashCode(): Int
toString
Link copied to clipboard
js
open override fun toString(): String

Properties

content
Link copied to clipboard
js
val content: Div.(column: Column<T>) -> Unit
styling
Link copied to clipboard
js
val styling: BasicParams.(sorting: Sorting) -> Unit