masterButton {nextGenShinyApps} | R Documentation |
Create a master button
Description
A master button creator
Usage
masterButton(
inputId,
text = "Text",
icon = NULL,
width = NULL,
size = c("m", "xs", "s", "l", "xl"),
style = c("default", "pill", "round", "clean"),
bg.type = c("default", "primary", "secondary", "info", "success", "danger", "warning"),
outline = FALSE,
extraClass = NULL,
...
)
Arguments
inputId |
input id |
text |
Button text |
icon |
Choice of button icon |
width |
Width of the bottom |
size |
Size of the button, choices include "m","xs", "s", "l", "xl" |
style |
Style of the button, choices include "default", "pill", "round", "clean" |
bg.type |
Color of the button, choices include "default", "primary", "secondary", "info", "success", "danger", "warning" |
outline |
Use an outline styling, TRUE or FALSE |
extraClass |
other class names to add to the button attribute |
... |
Other elements to add to the button |
Value
HTML of the buttons to insert into a page
Examples
if (interactive()) {
card(
shiny::h2("Master buttons with various styles"),
header = FALSE,
shiny::div(masterButton("Submit button with primary color",
icon = shiny::icon("file"), size = "s", bg.type = "primary"
))
)
}
[Package nextGenShinyApps version 2.1 Index]