I have a shinydashboard app with multiple pages. However, whenever I leave page A and enter page B and then come back to A, the scroll position of A affects the scroll position B.
I would like to avoid this (ie, that the scrolls are independent)?
I could even put some reproducible code, but it would be too big to put it here. So I figured it would be better to insert a stable shinydashboard app inside shinyGallery:
https://ctmm.shinyapps.io/ctmmweb/
Note that the scrolls are not in the previous position when I change pages in the sidebar.
I would like each scroll of each page to be independent of the scroll of others.
I tried to insert some CSS
and JS
code in my app (a golem
) but I couldn't get the scrolls to be independent of each other for each page.
I believe all shinydashboards show this pattern...
Each page was supposed to keep its position, no matter how many pages I entered later and returned to it.
from How to keep the position of each scroll of each page independent of the scroll modification of other pages in shinydashboard?
No comments:
Post a Comment