Description Usage Arguments Value See Also Examples
Create a LuminophoR proxy object, which can then be chained
to any of the API functions available (e.g. addWidget).
1 | luminophorProxy(id, session = shiny::getDefaultReactiveDomain())
|
id |
Name of the LuminophoR htmlwidget |
session |
Valid session object |
Proxy LuminophoR object
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | if (interactive()) {
library(shiny)
library(luminophor)
shinyApp(
ui = fluidPage(
sidebarLayout(
sidebarPanel(
actionButton('add', 'Add Widgets', icon = icon('plus'))
),
mainPanel(
luminophorOutput('lmo', height='90vh')
)
)
),
server = function(input, output) {
output$lmo <- renderLuminophor(
luminophor()
)
observeEvent(input$add, {
luminophorProxy('lmo') %>%
addWidget("mywidget")
})
}
)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.