How to use window width of dashboard to show/hide groups

Hi,

I'm trying to work out a way to use the window width of the dashboard to show and hide groups on the dashboard. I currently am using the Ui_control node to hide and show the group and this is working fine. The thing I am struggling with is how to get the users' window width and use this in the flow.

How can I get the window width of the dashboard and then use this to trigger the group to show/hide?

Thanks,
Gregor

I would think (not tried) that a ui_template node should be able to return the screen dimensions using the necessary javascript (maybe triggered by a ui_control connect message)

Thanks for the reply. How do I pass the data from the ui_template back into the node red? I tried using a variable to hold the width and then using "return" but this didn't appear to work.