20. Sidebar Panel change as you move to different Main Panel Tab in R Shiny

Опубликовано: 13 Октябрь 2024
на канале: Learn data analytics with us
2,317
17

hello guys my name is khan and actually in today's video we will discuss conditional tabs so what does it mean by conditional tabs before starting with conditional tabs you guys may remember that we have created multiple tabs in the main panel in our previous video uh so first I will discuss actually I have created two board files so one is the main tabs and the other one is the uh is actually the second profile is the same as the above but I have added the functionality of conditioning but first I open my main panel tabs code file in which I have created multiple tabs in my main panel so actually I have already discussed this part of the code that how you can add multiple tabs in your main panel but for this video, I will talk about again about it a bit in detail so so first what I will do I will execute this code control a

and then I will run this app to show what this code is doing

so actually we constructed this dashboard with the help of that code so you can see here the thing here that we have three tabs here results and result as we have just graph here and then you can see this select input is also getting attached with this thing and then we have stats i have reported some table here and then i have data tab but the important thing to note here is that the result tab this graph is associated with with this select input so this graph is associated with this slack input and if i go to my stats so in my remarks tab if i write down something like suppose looks good so you can see it's written down here and if i go back go to data tab if this select input tab select my ear this table got adjusted according to the ear but the thing to note here is that as a user i don't want to see others select inputs or input options for the given tab for this tab the only thing which is important is this thing because this thing is linked with this table and for stats this remark table uh text input is related to this tab and this result in the result tab this animated uh

select is select input is related to this graph but as you can see that as I am going to different tabs my sidebar panel remains static how you can adjust your sidebar panel according to the tab so in this video mainly we will see that how we can adjust our sidebar panel according to the tab where in which we are so supposed in data tab we want to see only this select input in result tab we will we also only want to see this slider input and then for the stacks tab we only want to see this uh text input because the text input is printed in stats under the result tab this

#sidebar #panel #rshiny
R Shiny Playlist:    • Learn Building R Shiny Dashboard with Us  
How to build conditional Sidebar Panel.