Debian Codegraph @

man/getCurrentTheme.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/bootstrap.R
3 \name{getCurrentTheme}
4 \alias{getCurrentTheme}
5 \title{Obtain Shiny's Bootstrap Sass theme}
6 \usage{
7 getCurrentTheme()
8 }
9 \value{
10 If called at render-time (i.e., inside a \code{\link[htmltools:tagFunction]{htmltools::tagFunction()}}),
11 and \code{\link[=bootstrapLib]{bootstrapLib()}}'s \code{theme} has been set to a \code{\link[bslib:bs_theme]{bslib::bs_theme()}}
12 object, then this returns the \code{theme}. Otherwise, this returns \code{NULL}.
13 }
14 \description{
15 Intended for use by Shiny developers to create Shiny bindings with intelligent
16 styling based on the \code{\link[=bootstrapLib]{bootstrapLib()}}'s \code{theme} value.
17 }
18 \seealso{
19 \code{\link[=getCurrentOutputInfo]{getCurrentOutputInfo()}}, \code{\link[=bootstrapLib]{bootstrapLib()}}, \code{\link[htmltools:tagFunction]{htmltools::tagFunction()}}
20 }
21 \keyword{internal}