Restrict only certain columns to edit in DT Shiny

I'm using editable=TRUE for a Datatable in Shiny, but I would like to edit only some specific columns of the table. I found this answer as a "workaround":

However, when I reproduce it, it stills lets the user click and edit other columns, so only if you edit the third column, then the other values return to the original ones (this will be really weird for the user).

Has someone made a solution for this?

2 Likes

Looks like it is in the works (see this PR) but it hasn't been merged yet. I had the same problem a while back, and like you, thought that the workaround (click, edit, have value change back to original) was confusing to the user. I ended up using rhandsontable instead.

This topic was automatically closed 54 days after the last reply. New replies are no longer allowed.