Add levels
bulmaLevel(..., mobile = FALSE)
bulmaLevelItem(heading, value, centered = TRUE)
renderBulmaLevel(expr, env = parent.frame(), quoted = FALSE)
bulmaLevelOutput(outputId)
any element.
set to TRUE
if you want the level to be horizontal on mobile.
level heading.
level value.
whether to center to level.
An expression that returns a Shiny tag object, HTML()
,
or a list of such objects.
The environment in which to evaluate expr
.
Is expr
a quoted expression (with quote()
)? This
is useful if you want to save an expression in a variable.
id of output.
if(interactive()){
library(shiny)
shinyApp(
ui = bulmaPage(
bulmaLevel(
bulmaLevelItem("Tweets", "3'456"),
bulmaLevelItem("Following", 765),
bulmaLevelItem("Followers", "2'134")
),
bulmaLevelOutput("levels")
),
server = function(input, output) {
output$levels <- renderBulmaLevel({
bulmaLevel(
bulmaLevelItem("Tweets", sample(100:5000, 1)),
bulmaLevelItem("Following", sample(100:5000, 1)),
bulmaLevelItem("Followers", sample(100:5000, 1))
)
})
}
)
}