Header

data class Header<T>(val styling: BasicParams.(sorting: Sorting) -> Unit = {}, val content: Div.(column: Column<T>) -> Unit = { column -> +column.title })

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

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

Properties

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