Repository navigation
How to have displayed results depend on hidden user input from a datagrid? #2021
Unanswered
travis-leith
asked this question in
Q&A
Replies: 2 comments
|
With the help of Claude, I found a workaround. The idea is to start with all the accordions open, then use a function on a timer to automatically close them after 2 seconds. A solution using the reactivity feature of shiny would be preferred. |
0 replies
|
Another update: I tried making reactive values for the dataframes, initialised with the relevant data
then creating a reactive event to keep it up to date with user changes then rendering the reactive value But the results of this are no different to if I just wired them up without the reactive values. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
In my case I have an accordion in the sidebar, that can expand to reveal one of a few different editable datagrids. I set the intial state of these data grids and take a reactive dependency on any user changes via
df.data_veiw(). The results that are displayed to the right of the sidebar are updated accordingly.The problem is that the results are only displayed when each accordion has been expanded at least once. I think the reactive event/message is not fired until the datagrid is actually displayed. I suspect this problem is solvable somehow with
reactive.valueand/orreactive.eventbut the precise implementation plan currently escapes me. Any advice would be greatly appreciated.All reactions