How to reference widget class using String

Seeing how this was accepted and what said;

while using a Soft Class Reference wouldn’t allow you to reference widget class using a String as in the topic, it’s definitely a much better solution here even if you plan to load & create all the widgets anyway.

You can still use a map if you wish and keep a friendly string name:


I’m going to gloss over the fact that I do not fully understand why you’d want to do it like this. It can be done, though.

1 Like