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
types do not work in shiny modules #81
Comments
This happens because Running your example you should see something like this in the HTML head:
And in the console you will see this error, because hyphens are not allowed in a variable name.
This issue on shiny is related. |
Thanks for the answer, @trafficonese! Would a viable path to getting this to work be to edit the shinyTree code to change that JavaScript to create an Object somewhere and then add a property to the object for each Shiny module, something like (and I don't know JavaScript well, so please bear with me):
and then for each module
I'm not sure I have the structure right, but could something like this work? |
Something like that could work too. Unfortunately I'm also not a JS expert. I uploaded a PR already which should fix that problem, although it is maybe more of a hack than a nice solution. I just exchange all hyphens with an underscore. It would be really nice, if shiny would allow to set the separator used for modules. For now it is hardcoded in this variable |
Problem
Using the
types
argument ofshinyTree
in a module results in the tree not being rendered. This happens only when using the tree in a module.Code
Session Info
The text was updated successfully, but these errors were encountered: