简体   繁体   中英

Table rows not visible on Shiny App (DT Package)

I am having troubles to display the rows of a simple table in my shiny app with the DT package (renderTable works fine):

Example

The code I am using in ui.r and server.r are:

  • Server:
    output$table1 = renderDT({
         iris
       }, filter="top")
  • UI:
    Tab_1_2 <- tabPanel("Instructions", 
                          
      HTML("<p>2) Text sample;.  </p>"),
      actionButton("B1", "Refresh"),
      tabPanel("", title = icon("user"), wellPanel(
      tags$h2("", class = "text-center", style = "padding-top: 0;"),
      DTOutput("table1")
      ))
    )

Any help will be highly appreciated.

I don't know why but this part of the code was creating the problem:

tags$script(src ="require.js")

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM