Learn R Programming

argonR (version 0.2.0)

argonButton: Create a Boostrap 4 argon button

Description

Build an argon button

Usage

argonButton(
  src = NULL,
  name = NULL,
  status = "default",
  icon = NULL,
  size = NULL,
  block = FALSE,
  disabled = FALSE,
  outline = FALSE,
  toggle_modal = FALSE,
  modal_id = NULL
)

Arguments

src

Button external link.

name

Button label.

icon

Button icon. Expect argonIcon or icon.

size

Button size: NULL, "sm" or "lg".

block

Whether the button fill its parent. FALSE by default.

disabled

Whether to disable the button. FALSE by default.

outline

Whether to outline the button. FALSE by default.

toggle_modal

Whether to use th button for a modal. FALSE by default.

modal_id

If toggle_modal is TRUE, nedd to provide the modal targeted.

Examples

Run this code
# NOT RUN {
if(interactive()){
 library(argonR)
 argonButton(
  name = "Click me!",
  status = "danger",
  icon = argonIcon("atom"),
  size = "lg",
  toggle_modal = TRUE,
  modal_id = "modal1"
 )
}

# }

Run the code above in your browser using DataLab