| module_drawer | R Documentation |
Emits a minimal .shidashi-drawer container with a
uiOutput placeholder inside, plus the drawer
overlay. The drawer starts empty; module server code fills it
dynamically via shiny::renderUI.
Typical usage in a ‘module-ui.html’ template:
{{ shidashi::module_drawer() }}
Then in the module server:
output$shidashi_drawer <- shiny::renderUI({
shiny::tagList(
shiny::h5("My settings"),
shiny::p("Custom drawer content here.")
)
})
The ns() function from the module's template evaluation
environment is used automatically so that the output ID is
properly scoped to the module namespace.
module_drawer(output_id = "shidashi_drawer")
output_id |
character; the output ID for the
|
A shiny::tagList containing the drawer div and
its overlay.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.