Hi Retool team,
I want to hide a table and only show it when a button is clicked. On the right-side panel of the table component, there's a layout section to dynamically set when the table should be hidden. My use case is the table and button are in a modal. When the user opens a modal and clicks the button, the table shows. And after the modal is closed and reopened again, they need to click the button again in order to see the table.
I tried to link the button to trigger a query, and control the visibility of the table using {{!=query.data? false:true}}
. But the problem is that after a query is run, the table stays and cannot be hidden again.
Thank you very much for the help!