Bootstrap 386 action button
button_386(inputId, label, status = NULL, icon = NULL, width = NULL, ...)
inputId | The |
---|---|
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 |
width | The width of the input, e.g. |
... | Named attributes to be applied to the button or link. |
A shiny tag.
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) }