The hardware and bandwidth for this mirror is donated by dogado GmbH, the Webhosting and Full Service-Cloud Provider. Check out our Wordpress Tutorial.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]dogado.de.
Brings pushbar.js to Shiny; create off-canvas sliders for inputs, outputs or any other content.
Install with remotes
# install.packages("remotes")
::install_github("JohnCoene/pushbar") remotes
pushbar_deps
anywhere in your ui.setup_pushbar
at the top of your server
function, it’ll also let you determine whether to use blur
and overlay
when pushbars are opened.pushbar
in your ui to include content in
pushbars.pushbar_open
and pushbar_close
to
programatically (server-side) open and close the pushbars.Also includes an event (see example) to capture whether a pushbar is
opened (input$pushbarID_pushbar_opened
).
library(shiny)
library(pushbar)
<- fluidPage(
ui pushbar_deps(),
br(),
actionButton("open", "Open pushbar"),
pushbar(
h4("HELLO"),
id = "myPushbar", # add id to get event
actionButton("close", "Close pushbar")
),fluidRow(
column(5),
column(5, span("Is a pushbar opened?"), verbatimTextOutput("ev"))
)
)
<- function(input, output, session){
server
setup_pushbar() # setup
observeEvent(input$open, {
pushbar_open(id = "myPushbar")
})
observeEvent(input$close, {
pushbar_close()
})
$ev <- renderPrint({
output$myPushbar_pushbar_opened
input
})
}
if(interactive()) shinyApp(ui, server)
These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.