My goal is to provide a tabbed container where a user can look at the data in their Postgres tables.
So far I have the table names as tabs, an SQL query that runs when I select a tab to select *
from that table (disabled prepared statements to allow that).
My goal now is to add a dynamic table to each of the tabs and update that table data based upon which tab is selected (based on the query).
-- As you can see when I switch tabs, the table component only belongs to the first tab. The dynamically added tabs do not get that table component
My other option is to rather add a set of tabs, with no component within them, and have a large "global" table that displays the data.
It looks a bit odd, but it does work. Wondering if there is a better way to do this.
Thanks!