By default, Shiny DT displays buttons to navigate through records. However, when using style="bootstrap"
, these buttons change to text, "previous12345...8Next" while still functioning as clickable links. How can I ensure that the buttons are rendered correctly?
if (interactive()) {
library(shiny)
library(DT)
library(bs4Dash)
# provide 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,
))
}
)
}