Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow javascript in options.innerHTML #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mhtorp
Copy link

@mhtorp mhtorp commented Jan 26, 2022

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

@pvictor
Copy link
Member

pvictor commented Feb 25, 2022

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

@mhtorp
Copy link
Author

mhtorp commented Feb 25, 2022

My reference is this issue: jeroen/jsonlite#77 (comment)

Evaluating element by element is as good to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants