Header
data class Header<T>(val styling: BasicParams.(sorting: Sorting) -> Unit = {}, val content: Div.(column: Column<T>) -> Unit = { column ->
+column.title
})
Content copied to clipboard
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
}Content copied to clipboard