<@U6Q6FJHT6> Why don't you use the `label` builder...
# tornadofx
e
@Marcin Wisniowski Why don't you use the
label
builder? If you really have a legit use case for
createLabel
you could use the same pattern we use in our extension functions to add it to the parent automatically.
m
That was just an example, I actually wanted to created a base class with an outer layout that inserts the inner layout with a method to be overridden in subclasses, so I can create a few similar windows (Views) that use the same outer layout by just overriding the single method with their specific inner layouts. So
createLabel()
was actually
getInnerContentRoot()
.
e
OK. You might use fragments for this as well. There are no right or wrong way here really 🙂