rstudio / DT

R Interface to the jQuery Plug-in DataTables
https://rstudio.github.io/DT/
Other
587 stars 184 forks source link

Disabling editable table by row (and not just by column) #1118

Open ajo1993 opened 5 months ago

ajo1993 commented 5 months ago

Hello,

I was wondering whether it is possible to disable editing by row indices and not just column indices. I would like to block editing on some columns and then also on certain rows. I was thinking of an option such as:

example: datatable(talbe, options = list(scrollX=TRUE,pagelenth=10,stateSave = TRUE), editable = list(target = 'cell', disable=list(columns=c(1,4), rows=c(1:5))).

Is this possible to do somehow in R without complex Java? I saw this post :https://stackoverflow.com/questions/73157285/shiny-dt-lock-some-columns-and-rows-for-editing but even in the latest DT version I don't get the "rows" option in "disabled".

Thank you


By filing an issue to this repo, I promise that

I understand that my issue may be closed if I don't fulfill my promises.