How to add an element after onInit
-
I need to add some components after loading an expansion, but got this message:
Tried to add a component after onInit() -
From what I can see, there's no way to add or remove elements after the
onInitphase. I wonder how people handle different layouts and elements for each expansion... -
@daniloprates I don't think the dynamic component feature is ready yet.
One way you can do is have a common parent panel, then add child panels to it dynamically following the layout your expansion requires. A child panel can be turned to any component like slider, label, or any more complex widget