Tomas Kormanak
04/29/2021, 8:50 AM<tabpanel><tab><mycomponent><mycomponent></tab></tabpanel>
Tomas Kormanak
04/29/2021, 8:56 AMRobert Jaros
04/29/2021, 9:42 AMCustomTag
component in KVision. Do you have something different on your mind?Tomas Kormanak
04/29/2021, 10:39 AMSimplePanel
It could default to div
when it is not set.
class MyComponent : SimplePanel() {
override val customTag = "custom-tag"
}
would produce:
<custom-tag></custom-tag>
or optionally it can be derived from component classname:
class UserProfile : SimplePanel() {}
would render:
<user-profile></user-profile>
Tomas Kormanak
04/29/2021, 10:46 AMclass UserProfile : SimplePanel(classes=setOf("useprofile")) {}