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
htmlwidgets for shiny inputs #203
Comments
|
@RicLouRiv, |
|
I'd check this out: http://shiny.rstudio.com/articles/building-inputs.html If we decide to expand htmlwidgets to include inputs as well, it's very likely that it'll be an easy transition from a Shiny input to an htmlwidget input, as was the case for Shiny outputs to htmlwidget outputs. |
|
Thank you both very much for your quick reply! |
|
I'd also express support for adding input functionality to htmlwidgets. In |
|
It would also be useful to be able to leverage shiny's |
|
For anyone else that lands here, trying to learn the way to add Shiny Inputs to htmlwidgets (and how to do the JavaScript binding for interactions). @aarizvi pointed me to this blog post (section 7) and it answered my question perfectly (just add observeEvent in Shiny server, after wiring up Shiny.onInputChange() in the javascript). Good stuff! https://deanattali.com/blog/htmlwidgets-tips/#widget-to-r-data |
|
@RicLouRiv: Did you succeed in wrapping the limitslider in Shiny? I have also found @JohnCoene's tutorial very useful: https://john-coene.com/post/how-to-build-htmlwidgets/. |
Hello,
Could someone point me to an example of how to use htmlwidgets to create Shiny inputs? For example, I'd like to create a slider widget based on limitslider (https://github.com/vanderlee/limitslider).
Many thanks!
The text was updated successfully, but these errors were encountered: