New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The add_title() function does not work in shiny. #40
Comments
Hi, thanks for using reactablefmtr. Unfortunately, the title, subtitle, and source aren't compatible with Shiny because their properties get masked by the Shiny HTML. I'll be sure to add this to the documentation so that users know ahead of time. A work-around I'd recommend is adding the title above the table within the ui section of the Shiny app like below: library(shiny)
library(reactable)
library(reactablefmtr)
ui <- fluidPage(
h2("Motor Trend Car Table"), # add title above table
reactableOutput(outputId = "table")
)
server <- function(input, output, session) {
output$table <- renderReactable({
reactable(data = mtcars)
})
}
shinyApp(ui, server) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you for this wonderful package. When using the add_title() function in shiny, no title is displayed. see:
Using the function without shiny:
R.version
platform x86_64-w64-mingw32
arch x86_64
os mingw32
crt ucrt
system x86_64, mingw32
status
major 4
minor 2.1
year 2022
month 06
day 23
svn rev 82513
language R
version.string R version 4.2.1 (2022-06-23 ucrt)
nickname Funny-Looking Kid
The text was updated successfully, but these errors were encountered: