Supported Functionality for 3D Panel Widget
- March 18, 2021
- 1 reply
- 5228 views
With the new release of 9.0.2 obviously I noticed the 3D Panel widget is now supported.
In reading the documentation, I've noticed there seems to be a conflict in the proposed usage and I'm wondering if there is a best practice around hiding/showing the widget.
Per the help center here. there is a supported show/hide service to control the visibility of the widget. I don't see the service available in my design time properties panel for the widget, but I can make a call to that service using: twx.app.fn.triggerStudioEvent(document.querySelector('[widget-id="3DPanel-#"]'), 'app.view["Home"].wdg["3DPanel-#"].svc.hide');
This seems to work intermittently at best for my particular implementation.
However when I browsed for the documentation in the 3D Press button, it seems that the supported practice is to use standard widget notation to show/hide using the visible property of the panel as well as all of its contained widgets.
Using this method I have had better success than just calling the service. When I call the service AND then hide the panel and all the contained widgets, the result is much more reliable. I have a significant amount of widgets on the panel, so that may be affecting the usage.
Is there a best usage guideline around whether to use the service or visible properties, and is there a limit around the amount of information (widgets) we should contain on the panel?

