Button
button.Rmd
The button
is the ui5 equivalent of shiny::actionButton
.
See the official documentation for all the correct props.
Nav
Note that you can use the button to toggle the visibility of a nav
component by adding data-ui5-nav
attribute.
button(
"btnId",
icon = "home",
"First nav",
tooltip = "Go to first tab",
`data-ui5-nav` = "firstNav"
)
Examples
button(
"btnId",
icon = "home",
"A button"
)
button(
"btnId",
"Default",
design = "Default"
)
button(
"btnId",
"Emphasized",
design = "Emphasized"
)
button(
"btnId",
"Attention",
design = "Attention"
)
button(
"btnId",
"Positive",
design = "Positive"
)
button(
"btnId",
"Negative",
design = "Negative"
)
button(
"btnId",
"Transparent",
design = "Transparent"
)
button(
"btnId",
design = "Default",
icon = "edit",
tooltip = "Edit Button"
)
button(
"btnId",
design = "Transparent",
icon = "account",
tooltip = "Edit Button"
)