Check if component exist
-
I'm building a RangeKnob factory and I want to check if a component already exists or not, so I tried this:
if (!isDefined(Content.getComponent(name))) { Content.addPanel(name, ......); }
and yes it works however I get a console message saying:
Is it possible to check if a component already exists without getting this console message?
-
What about
Console.print(Content.getAllComponents("name").length);
? -
@d-healey yes, that's it, thank you David!