jrowen / rhandsontable

A htmlwidgets implementation of Handsontable.js
http://jrowen.github.io/rhandsontable/
Other
380 stars 147 forks source link

set 'hot_col' 'source' argument as a list #390

Closed stla closed 3 months ago

stla commented 2 years ago

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.

Avatoo commented 1 year ago

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!

stla commented 1 year ago

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.

Avatoo commented 1 year ago

@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)