Skip to contents

The full ggpaintr asset bundle as a shiny::tagList(): the structural-layer dependency (ptr_set_class handler + stage CSS), the cosmetic ggpaintr.css theme dependency + code-window JavaScript, and any user override stylesheets. The CSS/JS ship as htmltools::htmlDependency() objects, so emitting this anywhere on a page — even several times — yields exactly one <head> injection of each. The single-piece UI builders (ptr_ui_plot(), ptr_ui_controls(), ...) emit no assets; an L3 page that composes pieces by hand normally gets them from the page shell, or includes this directly for a non-fluidPage root. The bundled apps and the ptr_*_ui() composites inject it for you.

Usage

ptr_ui_assets(css = NULL)

Arguments

css

Optional character vector of paths to additional CSS files; linked after ggpaintr's bundled stylesheet so its rules win. See ptr_app() for the full semantics. Defaults to NULL.

Value

A shiny::tagList().

Examples

ptr_ui_assets()
#>