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
formatStyle()
doesn't work with Bootstrap 5
#1102
Comments
Hi @alanfarahani and thanks for the excellent reprex! The root cause of the problem is that I'm moved this issue to the DT repo. If a fix beyond using |
formatStyle()
doesn't work with Bootstrap 5
Hi @gadenbuie, I had wondered whether this was possibly Edit: I should add, per the last issue posted to DT. That I have tried the reprex above using the development versions of both DT and bslib. See session info below:
|
This issue appears to be resolved in the development version. |
Hello everyone, Sorry to comment in a closed post, but it appears I have the exact same problem, with the same reprex, with current CRAN versions and current development versions of bslib and DT, and the style="default" workaround is not an option in my case. Is there anything I'm missing?
─ Session info ───────────────────────────────────────────────────────────────────────────────
setting value
version R version 4.3.3 (2024-02-29 ucrt)
os Windows 10 x64 (build 19045)
system x86_64, mingw32
ui RStudio
language (EN)
collate English_United States.utf8
ctype English_United States.utf8
tz Europe/Paris
date 2024-03-06
rstudio 2023.12.1+402 Ocean Storm (desktop)
pandoc NA
─ Packages ─────────────────────────────────────────────────────────────────────────────── |
Hi all,
The issue has already been raised in an SO post, but I wonder if a solution can be implemented in the back-end.
The problem
Unless I'm missing something, the bootstrap formatting of bslib appears to override any DT "formatStyle" calls for tables whose styles are not the default. That means choosing "auto" or "bootstrap5" will prevent any data-conditional table rendering apart from an implementation in css / javascript.
It would be great to use the bootstrap5 styling provided by bslib and programmatically format a table using "formatStyle".
MRE
Session Info
The text was updated successfully, but these errors were encountered: