Releases: rstudio/DT
DT 0.33
-
Added
outputArgs
parameter torenderDataTable
, to allow width and height to be set when using interactive R Markdown documents. -
Fixed a bug in
renderDT()
's evaluation of...
arguments whenquoted = TRUE
(#1130). -
Maintain selected columns/rows/cells upon re-render (thanks, @epruesse, #1125).
-
The maintainer of this package has been changed from Yihui Xie (@yihui) to Joe Cheng (@jcheng5).
DT 0.32
-
Fixed a bug that caused the column used for grouping with the RowGroup extension to change when relocated by the ColReorder extension (thanks, @isthisthat, @mikmart, #1109).
-
Fixed the bug that
replaceData()
failed to work with data that has no column names (thanks, @mmuurr, #1108). -
updateSearch()
now sets the slider values based on the new search string for numeric columns (thanks, @mikmart, #1110). -
The
searchCols
option now sets the slider values for numeric columns whenserver = TRUE
(thanks, @alexvpickering, @mikmart, #998). -
Added server-side processing support for the SearchBuilder extension (thanks, @AhmedKhaled945, @shrektan, @mikmart, #963).
-
Fixed a bug that caused the date picker widget from the DateTime extension to render incorrectly (thanks, @mikmart, #1116).
-
Column formatting now also applies to range labels shown on filter sliders (thanks, @GitChub, @mikmart, #247).
-
Added support for passing custom configuration for initializing filter widgets in JavaScript. Use the
filter
parameter todatatable()
in the formfilter = list(settings = list(select = ..., slider = ...))
(thanks, @yogat3ch, @DavidBlairs, @mikmart, #1072, #1083).
DT 0.31
-
Upgraded DataTables version to 1.13.6 (thanks, @stla, #1091).
-
Searching and sorting work now when columns are re-ordered by the
ColReorder
extension (thanks, @ashbaldry #1096, @gergness #534, @nmoraesmunter #921, @isthisthat #1069). -
Fixed disabling selection on hyperlink clicks (thanks, @guoci, #1093).
-
Fixed an error for R >= 4.3.0 (thanks, @AntoineMichelet, #1095).
DT 0.30
-
Fixed a bug that when using
updateSearch()
, the clear button inside the input box doesn't show up, and the table doesn't update when the input is cleared (thanks, @DavidBlairs, #1082). -
Added support for a list of Booleans as input to the
class
argument ofDT::datatable()
whenstyle = 'bootstrap'
(thanks, @pedropark99, #1089). In other words, you can now select the Bootstrap classes you want to use atDT::datatable()
by using a list of Booleans that select the classes you want to use. In the example below, we are producing an HTML table that uses thestripe
andhover
Bootstrap classes:DT::datatable(mtcars, class = list(stripe = TRUE, compact = FALSE, hover = TRUE), style = "bootstrap")
-
Handle
NULL
return frombslib::theme_version()
(thanks, @slodge-work, #1090).
DT 0.29
-
Support Bootstrap 5 with
datatable(style = "auto")
(thanks, @gadenbuie, #1074). -
Fixed a bug that searching would fail when the keyword contains special characters such as
&
(thanks, @dfriend21 @olivier7121, #1075). -
Deleted
()
aftereval
in a JS comment to prevent Google from treating it as malware, which is just a false alarm (thanks, @gorkang, #1080).
DT 0.28
DT 0.27
-
dataTableOutput()
gains a newfill
parameter. WhenTRUE
(the default), the widget's container element is allowed to grow/shrink to fit it's parent container so long as that parent is opinionated about its height and has been marked withhtmltools::bindFillRole(x, container = TRUE)
. (#2198)- The primary motivation for this is to allow DT to grow/shrink inside
bslib::card_body_fill()
. When doing so, you'll also want to setfillContainer = TRUE
indatatable()
.
- The primary motivation for this is to allow DT to grow/shrink inside
-
Bug fixed: when editing a table, it was impossible to switch from an empty cell to 0 and vice-versa (thanks, @RozennGZ #1038, @stla #1039).
-
When a
datatable()
is created outside a Shiny app, theselection
argument won't work (thanks, @bartekch, #1043). -
doGloblSearch()
now works correctly when the input data frame is a tibble (@mikmart, #1044).
DT 0.26
-
Upgraded DataTables to v1.12.1.
-
New extension StateRestore. It allows to save and restore DataTables states.
-
Default to
width: 100%; height: auto
instead of500px x 960px
when statically rendering in browser (thanks, @cpsievert, #1022).