Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

152
Visualizações
"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 Respostas
Responde à pergunta

0

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

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda