Skip to content

Commit

Permalink
add default color to badge example
Browse files Browse the repository at this point in the history
  • Loading branch information
DivadNojnarg committed Mar 15, 2024
1 parent 943ba1b commit 2310b22
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 38 deletions.
39 changes: 20 additions & 19 deletions R/f7Badge.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,28 @@
#' @param color Badge color: see here for valid colors \url{https://framework7.io/docs/badge.html}.
#'
#' @examples
#' if(interactive()){
#' library(shiny)
#' library(shinyMobile)
#' if (interactive()) {
#' library(shiny)
#' library(shinyMobile)
#'
#' colors <- getF7Colors()
#' colors <- getF7Colors()
#'
#' shinyApp(
#' ui = f7Page(
#' title = "Badges",
#' f7SingleLayout(
#' navbar = f7Navbar(title = "f7Badge"),
#' f7Block(
#' strong = TRUE,
#' lapply(seq_along(colors), function(i) {
#' f7Badge(colors[[i]], color = colors[[i]])
#' })
#' )
#' )
#' ),
#' server = function(input, output) {}
#' )
#' shinyApp(
#' ui = f7Page(
#' title = "Badges",
#' f7SingleLayout(
#' navbar = f7Navbar(title = "f7Badge"),
#' f7Block(
#' strong = TRUE,
#' f7Badge("Default"),
#' lapply(seq_along(colors), function(i) {
#' f7Badge(colors[[i]], color = colors[[i]])
#' })
#' )
#' )
#' ),
#' server = function(input, output) {}
#' )
#' }
#'
#' @author David Granjon, \email{dgranjon@@ymail.com}
Expand Down
39 changes: 20 additions & 19 deletions man/f7Badge.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2310b22

Please sign in to comment.