Hide selective ui nodes in subflow with Flowfuse Dashboard2

I have created a general Nodered subflow "Sensor" for many types of sensors. (temperature, pressure, power, volt, current, humidity...)
The subflow "Sensor" includes a "Classic gauge", ui-chart and ui-text UI-nodes in Dashboard2.
This works great !

But now I want to "show" or "hide" (without allocate the space) some of the UI-nodes by using Subflows "Enviroment Variable" with a "Checkbox" of the "Classic Gauge", "Chart" and "Text"-node for each sensor in the Subflows, but how could I hide selective ui-nodes in a subflow ?
If the ui-node was a "Template" node I could use CSS "Display: none", but how could I solve it for the nodes "Classic gauge", ui-chart and ui-text ?

You could still use CSS by setting the class property on each widget to (for example) ${HIDE_ME_CLASS} and adding a ui-template with the necessary CSS for the class name

You can also use ui-control to show/hide the group (assuming each control is in a group)