argonButton: Create a Boostrap 4 argon button

Description Usage Arguments Author(s) Examples

View source: R/argonButton.R

Description

Build an argon button

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
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.

status

Button color. See https://demos.creative-tim.com/argon-design-system/docs/components/buttons.html.

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.

Author(s)

David Granjon, dgranjon@ymail.com

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
if(interactive()){
 library(argonR)
 argonButton(
  name = "Click me!",
  status = "danger",
  icon = argonIcon("atom"),
  size = "lg",
  toggle_modal = TRUE,
  modal_id = "modal1"
 )
}

argonR documentation built on Dec. 1, 2019, 1:15 a.m.