Custom components
Extending KVision DSL
fun Container.card(header: String? = null, title: String? = null, contentBuilder: P.() -> Unit) {
div(className = "card") {
if (header != null) {
div(header, className = "card-header")
}
div(className = "card-body") {
if (title != null) {
h5(title, className = "card-title")
}
p(className = "card-text", init = contentBuilder)
}
}
}
Extending KVision classes

Last updated