-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathargonButton.Rd
60 lines (50 loc) · 1.31 KB
/
argonButton.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/argonButton.R
\name{argonButton}
\alias{argonButton}
\title{Create a Boostrap 4 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{
\item{src}{Button external link.}
\item{name}{Button label.}
\item{status}{Button color. See \url{https://demos.creative-tim.com/argon-design-system/docs/components/buttons.html}.}
\item{icon}{Button icon. Expect \link{argonIcon} or \link[shiny]{icon}.}
\item{size}{Button size: NULL, "sm" or "lg".}
\item{block}{Whether the button fill its parent. FALSE by default.}
\item{disabled}{Whether to disable the button. FALSE by default.}
\item{outline}{Whether to outline the button. FALSE by default.}
\item{toggle_modal}{Whether to use th button for a modal. FALSE by default.}
\item{modal_id}{If toggle_modal is TRUE, nedd to provide the modal targeted.}
}
\description{
Build an argon button
}
\examples{
if(interactive()){
library(argonR)
argonButton(
name = "Click me!",
status = "danger",
icon = argonIcon("atom"),
size = "lg",
toggle_modal = TRUE,
modal_id = "modal1"
)
}
}
\author{
David Granjon, \email{[email protected]}
}