Closed mjhelf closed 5 years ago
Looks good.
The span tag with id "runcode_errorMsg" also needs to be namespaced. The documentation should be capitalized and a bit more concise: "When used inside a shiny module, the module's id needs to be provided to \code{runcodeUI}. This argument should remain \code{NULL} when not used inside a module."
Also please bump the version in the DESCRIPTION , and add an item to the NEWS file
Hi @daattali, thanks for the feedback and sorry for the late response! I made changes according to your comments. Let me know if this is ok, thank you!
Looks great, thanks!
Hi @daattali , these are the changes as discussed in #184 ...
The
id
argument is used in an unusual way here (because the enclosing module UI needs to be passed, instead of creating an identifier for a UI element), so maybe the argument name should be changed to something else to make that clearer?Let me know if this needs more testing or adjustments,
Best, Max
Here is a minimal example, I wasn't sure whether it should be included in the documentation:
And here is a more involved example that tests out the new possibilities:
runcode
multiple times with different input types, inside and outside modulesreactive
that is local to the module scope