Thanks! These are CSS classes provided by an external stylesheet, so the first one does work. It seems a little long however... Before I get too deeply into this, any other differences I should be on the lookout for?
Jonathan Smith
01/10/2023, 3:17 PM
Fragment.create {
div {
className = ClassName("container-xl")
div {
className = ClassName("row mb-4 header")
div {
className = ClassName("col-md-12")
h1 { +"Likely Dashboard" }
}
}
}
}
t
turansky
01/10/2023, 8:06 PM
About
ClassName
- itโs expected, that you will have constants for class names in cases like this.
Will it be more usefull?! ๐
j
Jonathan Smith
01/10/2023, 8:34 PM
I don't have a strong preference either way. (I am used to lots of strings in HTML/CSS land in any case.) But it might be worth JB correcting the online documentation ๐ See link at bottom of: https://kotlinlang.org/docs/typesafe-html-dsl.html