It palette is "limited", permittedCols is named, and returnName is TRUE, return the name of the name selected element of permittedCols rather than its value.
I hope this is a fairly easy change. I cloned the repo with the intention of providing a solution myself, but it looks as if the change needs to be made in JavaScrip rather than R, and that's outside my skillset.
It looks like the relevant code is on lines 61 & 62 of inst/srcjs/input_binding_colour.js...
If this isn't possible, or doesn't fit with your vision for the package, that's not a problem. It's easy to implement in the app's server function. It would just be cleaner if the input widget didn't it for you.
Thank you for your always excellent contributions to the R community, Dean.
It
paletteis"limited",permittedColsis named, andreturnNameisTRUE, return the name of the name selected element ofpermittedColsrather than its value.I hope this is a fairly easy change. I cloned the repo with the intention of providing a solution myself, but it looks as if the change needs to be made in JavaScrip rather than R, and that's outside my skillset.
It looks like the relevant code is on lines 61 & 62 of
inst/srcjs/input_binding_colour.js...If this isn't possible, or doesn't fit with your vision for the package, that's not a problem. It's easy to implement in the app's server function. It would just be cleaner if the input widget didn't it for you.
Thank you for your always excellent contributions to the R community, Dean.