Search bs4Dash variables

search_vars_bs4dash(pattern = NULL, source = c("adminlte", "bootstrap"))

Arguments

pattern

A pattern to filter the results.

source

Search variables in AdminLTE or Bootstrap or both.

Value

a data.frame with three columns:

  • source : AdminLTE or Bootstrap variable.

  • variable : name of the variable.

  • value default value used.

Examples

# Retrieve all variables
all_vars <- search_vars_bs4dash()
head(all_vars, 20)
#>                    variable      value   source
#> 1                      blue    #0073b7 adminlte
#> 2                 lightblue    #3c8dbc adminlte
#> 3                      navy    #001f3f adminlte
#> 4                      teal    #39cccc adminlte
#> 5                     olive    #3d9970 adminlte
#> 6                      lime    #01ff70 adminlte
#> 7                    orange    #ff851b adminlte
#> 8                   fuchsia    #f012be adminlte
#> 9                    purple    #605ca8 adminlte
#> 10                   maroon    #d81b60 adminlte
#> 11                    black       #111 adminlte
#> 12             gray-x-light    #d2d6de adminlte
#> 13                   colors map-merge( adminlte
#> 15           font-size-root       1rem adminlte
#> 16            sidebar-width      250px adminlte
#> 17        sidebar-padding-x      .5rem adminlte
#> 18        sidebar-padding-y          0 adminlte
#> 19    sidebar-custom-height       4rem adminlte
#> 20 sidebar-custom-height-lg       6rem adminlte
#> 21 sidebar-custom-height-xl       8rem adminlte

# Search for a pattern
head(search_vars_bs4dash("navbar"))
#>                      variable                                       value
#> 327 navbar-nav-link-padding-x                                        1rem
#> 328    navbar-brand-font-size                               $font-size-lg
#> 330       navbar-brand-height $navbar-brand-font-size * $line-height-base
#> 332  navbar-toggler-padding-y                                      .25rem
#> 333  navbar-toggler-padding-x                                      .75rem
#> 334  navbar-toggler-font-size                               $font-size-lg
#>        source
#> 327 bootstrap
#> 328 bootstrap
#> 330 bootstrap
#> 332 bootstrap
#> 333 bootstrap
#> 334 bootstrap