rhandsontable
rhandsontable copied to clipboard
set 'hot_col' 'source' argument as a list
Fix #389
Just changing
if (!is.null(source)) cols[[i]]$source = source
to
if (!is.null(source)) cols[[i]]$source = as.list(source)
at line 448.
Hey there, just wondering when this patch will be merged? I'm facing the same problem as #389. Tried tweaking various {rhandsontable} parameters, finally found that open issue. I'll need to see whether to install a new version if the fix is to be shipped soon or to implement my own solution. Much appreciated!
Hello @Avatoo
It looks like this package is not actively maintained. Use as.list
and this will work even after the fix will be done.
Cheers.
@stla many thanks for your reply. For the time being I got around it by the below as it only needs to be wrapped in list
when length of options is more than 1.
# ops defines options on dropdown
if (length(ops)==1) ops<- list(ops)