Skip to content

How to use shiny.fluent to achieve functionalities along similar lines as semantic.dashboard? #56

Answered by jakubsob
AlexPars asked this question in Q&A
Discussion options

You must be logged in to vote

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:

library(shiny)
library(shiny.fluent)

ui <- fluentPage(
  tags$style(HTML('
    .grid-container {
      display: grid;
      grid-template-columns: 320px 1fr;
      grid-template-rows: 60px 1fr;
      grid-template-areas:
        "header header"
        "sidebar body";
      height: 100vh;
    }

    .header {
      grid-area: header;
      display: flex;
      flex-direction: row;
      align-items: center;
      background-colo…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@jjfantini
Comment options

@jakubsob
Comment options

Answer selected by AlexPars
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants