| Drawer.triggerId | R Documentation |
Custom Drawer bound to a DOM element by id. See 'js/src/MuiDrawerTriggerId.jsx'.
Drawer.triggerId(triggerId, ...)
triggerId |
HTML id of an existing DOM element that acts as the trigger (button, link, etc.) to open the Drawer. |
... |
Named arguments forwarded as React props, plus children to render inside the component.
Pass |
Object with 'shiny.tag' class suitable for use in the UI of a Shiny app.
library(shiny)
library(muiMaterial)
ui <- muiMaterialPage(
Button(id = "openDrawer", "Open drawer"),
Drawer.triggerId("openDrawer", anchor = "left", "Drawer content here")
)
shinyApp(ui, function(input, output, session) {})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.