Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

146
Views
"next" button showing as text for R Shiny DataTable using Bootstrap

Normally, Shiny DT will have buttons visible to view the next X amount of records. When specifying style="bootstrap", those buttons turn into the text, "previous12345...8Next" although they are still clickable links. What can I do to render the buttons properly?

if (interactive()) {
  library(shiny)
  library(DT)
  library(bs4Dash)

  # width dataframe as input
  shinyApp(
    ui = dashboardPage(

      header = dashboardHeader(),
      sidebar = dashboardSidebar(),
      body = dashboardBody(

        fluidRow(column(12, DT::dataTableOutput('mytable')))
      ),
      footer = dashboardFooter()
    ),
    server = function(input, output) {
      output$mytable <- DT::renderDataTable(iris,
                                            #extensions = "FixedHeader",
                                            style="bootstrap",
                                            options = list(
                                              dom = 'Bfrtip',
                                              lengthMenu = c(50, 100),
                                              pageLength = 20,
                                              scrollX=TRUE,
                                              autoWidth = TRUE,
                                              paging=TRUE,
                                              searching=FALSE,
                                              ordering=TRUE
                                              #fixedHeader = TRUE,
                                            ))
    }
  )
}
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

specifying style="bootstrap4" in place of style="bootstrap" under DT::renderDataTable() solves this issue

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!