lt_dependency: HTML dependency for lt tables

View source: R/shiny.R

lt_dependencyR Documentation

HTML dependency for lt tables

Description

The htmltools::htmlDependency() bundling lt's runtime assets, for embedding lt tables in other HTML output (e.g. another htmlwidget or a reactable cell) and rendering them client-side with LT.render() / LT.buildHtml() on a spec from lt_spec(). Requires the htmltools package.

Usage

lt_dependency(interactive = FALSE, plot = FALSE, shiny = FALSE)

Arguments

interactive

Whether to also include the interactivity extension (the assets behind lt_interactive()): its script and stylesheet.

plot

Whether to also include the graphics module (the assets behind lt_errorbar() and other inline-plot cells): its script and stylesheet. Its script loads before the core runtime so plot cells render.

shiny

Whether to include the Shiny output binding (only needed by lt_output() / render_lt()).

Value

An html_dependency object.

Examples

if (requireNamespace('htmltools', quietly = TRUE))
  lt_dependency(interactive = TRUE)

lt documentation built on Oct. 17, 2026, 9:06 a.m.