Releases: rstudio/DT
DT 0.23
DT 0.22
-
Enhancements to
updateFilters()
(#971):- Added support for data with integer and character columns (@mikmart #972).
- Fixed an issue with length 1 options causing filters not to update (@mikmart #973).
- Fixed an issue with slider limits sometimes being incorrectly scaled (@mikmart #974).
- Updates to factor and logical filters now match the initial render (@mikmart #975).
- Disabled status is now also affected by updates (@mikmart #977).
-
New functions
doColumnSearch()
anddoGlobalSearch()
let you do server-side searching with filter search strings. These are particularly useful in conjunction withupdateFilters()
for implementing dynamic limits for filter controls based on currently filtered data (@mikmart #982). -
Server-side searching is now faster when multiple filters are active (@mikmart).
-
Fix a bug that the column filter didn't work for strings like "+" (@stephan-hutter @shrektan #980).
DT 0.21
NEW FEATURES
-
Add the
zero.print
argument toformatPercentage()
,formatCurrency()
,formatSignif()
andformatRound()
, which allows to control the format of zero values. It's useful when the data is "sparse" (thanks, @shrektan #953). -
formatXXX()
functions now gain a new argumentrows
(starting from 1), which can be used to specify the rows that the "style" should be applied to. Note that it only works expected in the client-side processing mode, i.e.,server = FALSE
.formatStyle()
is the only exception that doesn't have this argument and should usestyleRow()
instead (thanks, @jrecasens @shrektan #520). -
Added a new function
updateFilters
to allow users to update the filters of a DataTable object that has been updated by reference, such as withreplaceData()
(thanks, @giadasp #934, @wholmes105 #939).
MAJOR CHANGES
- Now users can provide column names of the data to
options$columnDefs$targets
. Previously, it only supports column indexes or "_all" (thanks, @shrektan #948).
MINOR CHANGES
styleRow()
andstyleEqual()
now allows a scalarvalues
argument like other R functions, e.g.,styleRow(1:5, 'abcd')
is the same asstyleRow(1:5, rep('abcd', 5))
. It throws error thatthe length(rows) must be equal to length(values)
in the previous version (thanks, @shrektan #955).
BUG FIXES
-
Fix the bug that
addRow()
doesn't support a list ofdata
after R 3.4.0, wherestructure(NULL, ...)
was deprecated (thanks, @stla @shrektan #959). -
Fix the bug that DT table can't vertically fill the container, e.g., RStudio IDE or FlexDashboard (thanks, @mbojan @shrektan #951).
-
Fix the bug that DT failed to parse ajax request correctly, when special strings like "=" exist (thanks, @shrektan #965).
DT 0.20
DT 0.19
NEW FEATUERS
-
Add
vertical
andopacity
option tofilter
which applies to the noUiSliders. This is useful with limited width DataTables to prevent x overflow (thanks, @alexvpickering, #919). -
Now the user is able to restrict the editing to accept only numbers by, e.g.,
datatable(..., editable = list(target = "cell", numeric = 3:5))
. By default, the editing is restricted to numbers for all numeric columns; setnumeric = "none"
to disable this behavior (thanks, @stla, #860 #824). -
Now the user can request text areas for the editing by, e.g.,
datatable(..., editable = list(target = "cell", area = 1:2))
. Text areas are useful for cells with large contents (thanks, @stla #860, @fabiangehring #671).
MAJOR CHANGES
- Upgraded jQuery from v1.12.4 to v3.x imported from the jquerylib R package (f0043fa).
DT 0.18
NEW FEATURES
-
datatable()
'sstyle
argument now defaults to'auto'
, which resolves to either'bootstrap'
or'bootstrap4'
when a{bslib}
theme is relevant. If a{bslib}
theme isn't relevant,'auto'
resolves to the old default value of'default'
(thanks, @cpsievert, #852). -
Add a new function
styleRow()
. It's useful when you want to apply CSS styles based on Row Indexes (thanks, @s-fleck, #894).
BUG FIXES
datatable(data)
anddatatable(data, fillContainer = TRUE)
now work as expected when statically rendered insideflexdashboard::flex_dashboard()
(thanks, @cpsievert, #904).
DT 0.17
NEW FEATURES
-
Support the new datatables' extension SearchBuilder. With this new extension, users can construct a complex search query by adding groups and conditions. Note, as the time of writing, this extension only works on the client-side processing mode (thanks, @stla, #875)
-
Add a new plugin diacritics-neutralise, which can be used for searching accented, non-Latin characters with their unaccented counterparts. Note, it will only work in the client-side processing mode (thanks, @tyler-richardett, #887).
MINOR CHANGES
-
The
autoHideNavigation
argument now works with the default theme. In addition, the prerequisite is properly documented. Specifically speaking, it only works when thepageLength
option is provided and is rendered in the client-side processing mode (thanks, @bhogan-mitre, #856). -
When editing factor columns,
editData()
now automatically updates the factor levels if it's necessary (thanks, @aman-malik3010, #865).
BUG FIXES
-
Fix the issue that
addRow()
would fail when the proxy DT table contains no data (e.g., a zero-row data.frame) (thanks, @chalioui, #888). -
DT no longer overrides the
options$responsive
toTRUE
. Thus, it enables users to provide customized options for the Responsive extension (thanks, @hdrab127, #885).
DT 0.16
NEW FEATURES
-
Add a new plugin accent-neutralise, which can be used for searching accented characters with their unaccented counterparts. Note, it will only work in the client-side processing mode (#822).
-
addRow()
now has a new parameterresetPaging
. By setting it toFALSE
, we can keep the paging position after adding a row (thanks, @stanstrup, #853).
MINOR CHANGES
-
Upgrade the SearchPanes extension to v1.1.1 so that it can display all the entries properly with the Scroller extension (thanks, @JonasMandel @stla, #820).
-
The
class
argument now keeps user-defined classes with bootstrap themes (thanks, @mmuurr, #806). -
Now DT will throw a clear error message if the value of
search
provided indatatables(..., options=)
is illegal (thanks, @realHenningLorenzen, #848).
BUG FIXES
-
Fix the issue that the sorting results may not be expected after formatting functions applied. This is a regression of PR #777 (thanks, @fernandofernandezgonzalez @shrektan, #837).
-
styleColorBar()
now displays correctly on Safari, when the data is greater than the upper limit, due to negative css percentage values (thanks, @Seyphaton, #843).
DT 0.15
DT 0.14
NEW FEATURES
-
Now the user is able to control the selection range by
datatable(..., selection = list(selectable = 3:5))
, where positive and non-positiveselectable
means "enable" and "disable", respectively (thanks, @tomasreigl @shrektan, #201 #793). -
Added a function
styleValue()
to use column values as CSS values. When the user has a complex CSS rule to apply, storing the CSS values in the columns of the table and call this function is very convenient (thanks, @Mosk915 @shrektan, #801 #802). -
Clicking on a row or cell now always triggers a reactive event in Shiny (
input$tableId_row_last_clicked
orinput$tableId_cell_clicked
), even if the same row or cell is clicked multiple times (thanks @gadenbuie, #811).
BUG FIXES
-
Fix the issue that formatting functions don't support vectorized arguments any longer. This was a regression of PR #777 (thanks, @pbreheny @shrektan, #790).
-
Fix the issue that
styleEqual()
incorrectly uses the column values as the default css values. This was a regression of PR #702 (thanks, @Chr96er @shrektan, #799)
MINOR CHANGES
-
The formatting functions now throw clearer error messages when called on non-datatables objects (thanks, @shrektan, #785).
-
Now the
server
argument inrenderDT()
is reactive in Shiny (thanks, @shrektan, #794). -
Incorrect
selection
param now triggers a clear error message on the R side (thanks, @shrektan, #795).