wbControls {shinyWidgets} | R Documentation |
WinBox controls
Description
WinBox controls
Usage
wbControls(
animation = TRUE,
shadow = TRUE,
header = TRUE,
min = TRUE,
max = TRUE,
full = FALSE,
close = TRUE,
resize = TRUE,
move = TRUE
)
Arguments
animation |
If |
shadow |
If |
header |
If |
min |
If |
max |
If |
full |
If |
close |
If |
resize |
If |
move |
If |
Value
A list
of controls to use in WinBox()
.
Examples
library(shiny)
library(shinyWidgets)
ui <- fluidPage(
html_dependency_winbox(),
actionButton(inputId = "show", label = "Show WinBox")
)
server <- function(input, output, session) {
observeEvent(input$show, {
WinBox(
title = "Custom controls",
ui = tagList(
tags$h2("Hello from WinBox!"),
"Text content of winbox."
),
controls = wbControls(
min = FALSE,
max = FALSE,
resize = FALSE
)
)
})
}
if (interactive())
shinyApp(ui, server)
[Package shinyWidgets version 0.8.6 Index]