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 })

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