Closed CorneeldH closed 1 year ago
Hello, in a module you have to use the module's namespace explicitly in the UI part, and use the according ID in the server, in your code you mix module's ID and content of the module ID. Here's a working example :
esquisseServer <- function(id) {
moduleServer(id, function(input, output, session) {
## TODO Some other special stuff which is why I want esquisse as submodule
data_rv2 <- reactiveValues(
data = iris %>% select(-Sepal.Length),
name = "iris selected"
)
esquisse_server(
id = "esquisse",
data_rv = data_rv2,
import_from = NULL
)
})
}
esquisseUI <- function(id) {
ns <- NS(id)
esquisse_ui(
id = ns("esquisse"),
header = FALSE,
# dont display gadget title
container = esquisseContainer(height = "700px")
)
}
Thanks, my bad indeed!
Any thoughts on: "I was wondering whether you are interested in exporting more helper functions and in general increase extensibility even further. This would increase the number of use cases for the package and would allow others, like myself, to build their own 'layers' more easily."
Sure it can be considered, which functions in particular ? Can you open a new issue on this subject ?
Hi there,
Beautiful package!
I want to use esquise as a submodule within an other module, however I can't get it to work. The bare bones of my app:
The esquisse_submodule shows up, but the ui aesthetics and plot remain completely empty. The controls are present but nothing can be selected. This in contrast with the esquisse_head that works out of the box. What step am I missing to use esquisse as submodule?
Thanks!
PS: I was wondering whether you are interested in exporting more helper functions and in general increase extensibility even further. This would increase the number of use cases for the package and would allow others, like myself, to build their own 'layers' more easily.
See also my comment on: https://github.com/dreamRs/esquisse/issues/34#issuecomment-1367963672