Closed MayaGans closed 7 months ago
Hello,
There no standard way to pass JavaScript options for Inputs (JS()
only works for htmlwidgets).
I added an exception in bindings to evaluate moves
, accepts
and invalid
as JavaScript code.
Re-install from GitHub and let me know how it works for you.
Victor
Hello! I'm trying to leverage dragulas
options.invalid
to make it so that theJan
block cannot be dragged, but struggling a bit without an example in the documentationI've tried supplying
"function (el, handle) { return el.tagName === 'Jan'; }"
as a string but that just injects it as a string in the JS object and not a function to be evaluated, and using htmltools::JS doesn't work either (maybe because of this: https://github.com/jeroen/jsonlite/issues/77) . Do you have any tips? Thanks!!