-
Package semantic.dashboard provides a very useful modular setup through functions dashboardHeader, dashboardSidebar, dashboardBody Is there a way to use shiny.fluent functions to construct a header, sidebar and body for a Shiny app, along the same lines as the 3 functions (from package semantic.dashboard) mentioned above? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hello @AlexPars! shiny.fluent doesn't have counterparts of those functions, but you can recreate such layout using CSS grid. It's slightly less convenient, but it's much more robust and allows to create more complicated layouts as well. See the following example:
You need to create a container with In case you are interested in collapsible sidebar functionality, see the following example:
It requires a bit of Javascript to make things work as well as some adjustments in CSS. CSS and Javascript are included inside R code, to make examples more compact, but you can extract them to separate files. Are those examples sufficient for you to recreate mentioned layout? If you have any more questions just let me know. |
Beta Was this translation helpful? Give feedback.
-
This is great Jakubsob, thanks! |
Beta Was this translation helpful? Give feedback.
Hello @AlexPars!
shiny.fluent doesn't have counterparts of those functions, but you can recreate such layout using CSS grid. It's slightly less convenient, but it's much more robust and allows to create more complicated layouts as well. See the following example: