Open dataquestions opened 5 years ago
@wch Any ideas for a future update? to have something like this??
Hello @dataquestions, if you haven't already, try posting your question at https://community.rstudio.com/. There are a good group of people reviewing questions there who might not see a question posted here.
@nteetor thanks for the help - have asked this question over there too - hopefully some help will be given shortly - never got any answers so far
I am new to shiny and was wondering if the below is possible, i have not found any examples online via stackoverflow or any github issues either.
I have the following shiny dashboard seen below - i have 2 dataframes that are built into the app - for now these are just test dataframes, one called nodes_data_1 and one called edges_data_1.
the reason i want it in a renderUI is because i want it to use the reactive node_data_reactive() - as this may change in future making it easier for me.
The dataframe called nodes_data_1 is the one of importance here - I want a way so that when a user clicks in on the sidebar radio button "Food Type" -
Then tab panels will be created based on the unique values in the nodes_data_1$Food column - which has 5 values - so there would be 5 separate tab panels all sitting within this large tab box.
Then after doing this, within each tab panel, checkboxes would be rendered which correspond to the values in the nodes_data_1$Product_name which sit in the nodes_data_1$Food category -
So for example the app will look something like this:
Outcome I want in the Shiny Dashboard
Here you can see in the dashboard - that when i am on the "Edibles" Tab Panel - the available options to select are those in the data that are in the "Edibles" category for Food
Please see the following code below - i do not know how to create such a thing - any ideas are welcome - new to shiny so hope this is possible!