-
Notifications
You must be signed in to change notification settings - Fork 34
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
How to pass child component when using createReactShinyInput
?
#47
Comments
@swsoyee Sorry, I am just now seeing this. I wrestled with this issue in https://github.com/timelyportfolio/dataui. My solution is unfortunately quite messy by manually adding the Thanks so much for the issue, and I'd love any ideas, feedback, examples that you might have to enrich the R + react community and experience. |
@timelyportfolio Thank you for your answer, I'll take a look at how you've implemented it in |
@swsoyee I had forgotten that Shiny inputs do not use @alandipert magic
I hope to show a minimal example this weekend. Let me know if you make any progress between now and then. |
@swsoyee couldn't wait for the weekend. Here is a really quick proof of concept with an example. Let me know if you have any questions or ideas. |
@timelyportfolio It's really cool! I'll try it out soon and left some comments if I have any other questions. |
@timelyportfolio @swsoyee : Have you tried more complex inputs like this:
I tried it and get the following error: Is there a workaround to get this to fixed? |
Thank you for your excellent work!
I'm considering create a package which is going to use
createReactShinyInput
to create my own shiny inputs, but I have no idea about how to pass child component to JavaScript side, and struggle for a long time with try and error.I have check the colorpicker-example, but in this example it doesn't show that how to pass child component.
Is there a way to make it?
The text was updated successfully, but these errors were encountered: