I'm using ExcelR and Shiny. I can't seem to make the table bigger than say, 13 rows.
Here is example code:
shinyApp(
ui = navbarPage("title", selected = "main",
position = "fixed-top",
tags$style(type="text/css", "body {padding-top: 70px;}"),
tabPanel("main", id = "main",
fluidPage(
excelOutput("table", width = "100%", height = "100%")
)
)
),
server = function(input, output, session) {
output$table <-renderExcel(
excelTable(
data = iris,
autoColTypes = FALSE,
pagination = 5,
#autoFill = TRUE,
fullscreen = FALSE,
lazyLoading = TRUE,
search = TRUE
)
)
}
)
pagination seems to have no effect, and if I switch fullscreen on, the rest of the rows are rendered, but I can't see the searchbar, and the padding between the table and the navbar disappears.
I'm running R 3.6.0
I'm going to leave this question open for a few days to see if anyone has a better answer.
For now, I managed to hack a solution by changing the excelTable function.
I added the line
paramList$tableHeight <- "500px"to the function, and renamed the function excelTable2.I found this param on the website for jExcel: jExcel Parameters
I guess I will probably add the height as an input parameter to excelTable2.
Working app after defining above
excelTable2