shinytreeview icon indicating copy to clipboard operation
shinytreeview copied to clipboard

Allow javascript in options.innerHTML

Open mhtorp opened this issue 3 years ago • 2 comments

This opens for passing javascript functions to options such as lazyLoad and onNodeRendered

mhtorp avatar Jan 26 '22 14:01 mhtorp

Hi, Thanks ! Have you an example of usage ? Does this work to eval the whole config ? I would have done it element by element My reference is what is done in selectize in shiny repo: https://github.com/rstudio/shiny/blob/5c03326a8c7c1f202b55b2bb99cdf4f592fd2f17/srcts/src/bindings/input/selectInput.ts#L264

pvictor avatar Feb 25 '22 17:02 pvictor

My reference is this issue: https://github.com/jeroen/jsonlite/issues/77#issuecomment-215384686

Evaluating element by element is as good to me.

mhtorp avatar Feb 25 '22 20:02 mhtorp