Tom Tom - 1 month ago 13x
R Question

How do you put multiple fluidRows() in one Shiny output?

When I try to put two fluidRows() in one output$variable, I only get the last one:

> {fluidRow(class="a"); fluidRow(class="b")}
<div class="row b"></div>

Is there a way to put two rows in one output$variable?


I'm not sure what exactly you expect, but I think thet simplest way to have multiple elements to return is using a div. Something like:

output$variable <- renderUI({
    fluidRow( class = "a"),
    fluidRow( class = "b")

It will create something like:

  <div class="row a"></div>
  <div class="row b"></div>