DT 0.6
NEW FEATURES
-
The table editor has been enhanced: now the
editable
argument ofdatatable()
can take four possible values,cell
(orTRUE
for backward compatibility),row
,column
, orall
, which means you can edit a single cell a time, or a whole row or column, or all cells in the table. To trigger the editor, doubleclick on any cell. To submit the edit, hitCtrl + Enter
when multiple cells are being edited, or hitEsc
to cancel the edit. See https://github.com/rstudio/DT/tree/master/inst/examples/DT-edit for comprehensive examples (thanks, @LukasK13 #509 and @mgirlich #493). -
Editing can be disabled on specified columns now: pass a list of the form
list(target = TARGET, disable = list(columns = INDICES))
to theeditable
argument ofdatatable()
, whereTARGET
can be'cell'
,'row'
,'column'
, or'all'
, andINDICES
is an integer vector of column indices (thanks, @opremicSebastian #657, @l-ts #550). -
Added a
funcFilter
argument toDT::renderDT()
(thanks, @galachad, #638).
BUG FIXES
-
Fixed the issue where
replaceData()
didn't work when used in Shiny modules (thanks, @donarus, #628, #626). -
The JavaScript event
cell_edit
now always triggers a reactive event on the R side. Sincecell_edit
will only be triggered when the value shown on the table has been changed so it's almost always what user expects (thanks, @shrektan @stelmath, #647 #645). -
Fix the issue that the server-side search option doesn't handle exotic encoding correctly, because after httpuv v1.5.0,
shiny::parseQueryString()
always assumes the input is an UTF-8 encoded string (thanks, @shrektan @phileas-condemine, #656).