Description Usage Arguments Value Examples
Custom Tabler action button
1 |
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 Tabler action button tag.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | if (interactive()) {
library(shiny)
ui <- tabler_page(
tabler_body(
tabler_button(
"btn",
HTML(paste("Value", textOutput("val"), sep = ":")),
icon = icon("thumbs-up"),
width = "25%"
)
)
)
server <- function(input, output) {
output$val <- renderText(input$btn)
}
shinyApp(ui, server)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.