bulmaActionButton: Add action button

Description Usage Arguments Author(s) Examples

View source: R/bulma-input.R

Description

Add an action button.

Usage

1
bulmaActionButton(inputId, label, color = NULL, wrap = TRUE)

Arguments

inputId

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

label

button label.

color

button color.

wrap

if TRUE the button is wrapped in a div(..., class = "control") element.

Author(s)

John Coene, jcoenep@gmail.com

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
if(interactive()){
 library(shiny)
 shinyApp(
   ui = bulmaPage(
     bulmaActionButton("goButton", "Render in console")
   ),
   server = function(input, output) {
     observeEvent(input$goButton, {
       print("button clicked")
     })
  }
 )
}

JohnCoene/shinybulma documentation built on Nov. 23, 2021, 6:20 p.m.