shiny layout question

206 views
Skip to first unread message

glennm...@me.com

unread,
Sep 27, 2016, 10:33:51 AM9/27/16
to Shiny - Web Framework for R
The code for the mainPanel is below with a screen shot of the result.  As you can see the tableOuput("CurveData") floats to the top.  How do I force it down below the other tables.  I changed fillRow to fluidRow thinking that might force the CurveData table down but not the case.

  mainPanel(
                 #fillPage(
                   fillRow(
                    div(h4("Valuation"),
                        fillCol(width = 5, tableOutput("PassThrough"))),
                    div(h4("Indicative Data"), 
                        fillCol(width = 5, tableOutput("MBSData"))) 
                   ), # end of fillRow
                   div(h4("Yield Curve Data"), fluidRow(tableOutput("CurveData")),
                      style = "font-size:80%")


glennm...@me.com

unread,
Sep 27, 2016, 6:26:59 PM9/27/16
to Shiny - Web Framework for R

I have a hack result above using the below code.  Not right as the Yield Curve Data does not adjust with the browser size but it at least gets close to the answer.  So, can this be achieved with fillRow and fillCol?
mainPanel(
                 fillPage(
                   fillRow(
                    tags$div(h4("Valuation"),
                        fillCol(tableOutput("PassThrough")), height = "100%"),
                    tags$div(h4("Indicative Data"), 
                        fillCol(tableOutput("MBSData")), height = "100%")
                   ), # end of fillRow
                   absolutePanel(
                   tags$div(h4("Yield Curve Data"), 
                            fillCol(tableOutput("CurveData")),
                      style = "font-size:80%"),
                   bottom = "20%",
                   left = "35%",
                   fixed = TRUE)

Joe Cheng

unread,
Sep 27, 2016, 6:49:46 PM9/27/16
to glennm...@me.com, Shiny - Web Framework for R
fillCol must be the direct descendant of fillRow. For what you're doing, you probably shouldn't be using fill*, but instead, fluidRow() and column().

See http://shiny.rstudio.com/articles/layout-guide.html, specifically the section "Grid Layout", for more about fluidRow and column.

--
You received this message because you are subscribed to the Google Groups "Shiny - Web Framework for R" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shiny-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/shiny-discuss/956c10ad-8669-4b7f-b273-76b993d3361c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages