bulmaBadge | R Documentation |
Create a badge to highlight a given element https://wikiki.github.io/elements/badge/.
bulmaBadge(
...,
color = NULL,
size = NULL,
style = NULL,
position = NULL,
badge_text = NULL
)
... |
Any element where the badge will be stuck. |
color |
Badge color : |
size |
Badge size : |
style |
Badge style : |
position |
Badge position : |
badge_text |
Badge content : avoid too large content (a number is better). |
David Granjon, dgranjon@ymail.com
if (interactive()) {
library(shiny)
ui <- bulmaPage(
bulmaContainer(
br(), br(),
bulmaColumns(
bulmaColumn(
width = 2,
bulmaBadge(
"test",
position = "",
size = NULL,
style = NULL,
color = NULL,
badge_text = 3
),
br(), br(),
bulmaBadge(
"test",
position = "bottom",
size = NULL,
style = NULL,
color = NULL,
badge_text = 3
),
br(), br(),
bulmaBadge(
"test",
position = "bottom-left",
size = NULL,
style = NULL,
color = NULL,
badge_text = 3
)
),
bulmaColumn(
width = 2,
bulmaBadge(
"test",
position = NULL,
size = "small",
style = NULL,
color = NULL,
badge_text = 3
),
br(), br(),
bulmaBadge(
"test",
position = NULL,
size = "medium",
style = NULL,
color = NULL,
badge_text = 3
),
br(), br(),
bulmaBadge(
"test",
position = NULL,
size = "large",
style = NULL,
color = NULL,
badge_text = 3
)
),
bulmaColumn(
width = 2,
bulmaBadge(
"test",
position = NULL,
size = NULL,
style = "outlined",
color = "info",
badge_text = 3
),
br(), br(),
bulmaBadge(
"test",
position = NULL,
size = NULL,
style = NULL,
color = "warning",
badge_text = 3
),
br(), br(),
bulmaBadge(
"test",
position = NULL,
size = NULL,
style = NULL,
color = "danger",
badge_text = 3
),
br(), br(),
bulmaBadge(
"test",
position = NULL,
size = NULL,
style = NULL,
color = "success",
badge_text = 3
)
)
)
)
)
server <- function(input, output, session) {}
shinyApp(ui = ui, server = server)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.