I am trying to determine if it is possible for a shiny
DataTable
to have row selection disabled for certain rows.
Using the selection
parameter of DT::datatable
I can pre-select rows, determine whether the user selects rows or columns or both, and disable selection entirely, but it isn't clear to me if I can indicate specific rows to exclude. Is this possible?
Regards
With the
Select
extension you can do:But if you need the indices of the selected rows in
input$table_rows_selected
, you have to code in JavaScript for that: