Bootstrap 386 action button
Arguments
- inputId
The
input
slot that will be used to access the value.- label
The contents of the button or link–usually a text label, but you could also use any other HTML, like an image.
- status
Button color.
- icon
An optional
icon()
to appear on the button.- width
The width of the input, e.g.
'400px'
, or'100%'
; seevalidateCssUnit()
.- ...
Named attributes to be applied to the button or link.
Examples
if (interactive()) {
library(shiny)
library(shiny386)
ui <- page_386(
button_386(
"btn",
HTML(paste("Value", textOutput("val"), sep = ":")),
icon = icon("thumbs-up"),
class = "btn-lg"
)
)
server <- function(input, output) {
output$val <- renderText(input$btn)
}
shinyApp(ui, server)
}