I was wondering if it is possible to use UIElements to make the header of a foldout element consist of more than just text.
An example of this can be seen in the inspector window where it also contains toggles and icons:
Hi @tmhbrts , there’s no direct way to do this at the moment. An option would be search the VisualElement hierarchy to get the label and inject it (or its parent) with whatever you need. The UIElements Debugger might be of some help for that. Beware that this approach may not be forward compatible.