wired_icon_button: Wired Icon Button

Description Usage Arguments Examples

View source: R/inputs.R

Description

Wired Icon Button

Usage

1
wired_icon_button(inputId, icon, ...)

Arguments

inputId

The input slot that will be used to access the value. The input slot that will be used to access the value.

icon

An shiny::icon to appear on the button.

...

Named attributes to be applied to the button.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
if (interactive()) {

  library(shiny)
  library(wired)

  ui <- fluidPage(
    wired_icon_button(
      inputId = "go",
      icon = icon("close")
    ),
    tags$br(),
    verbatimTextOutput(outputId = "res")
  )

  server <- function(input, output, session) {

    output$res <- renderPrint(input$go)

  }

  shinyApp(ui, server)

}

dreamRs/wired documentation built on Nov. 19, 2019, 5 a.m.