unstrap | R Documentation |
The crosstalk injects Bootstrap into rendered
HTML. unstrap()
removes the Bootsrap dependencies from the components.
unstrap(x)
x |
a crosstalk component, such as |
The component x
but with any "boostrap"
dependency removed from its
html_dependencies
attribute.
# The fs object will inject css into your page. if (requireNamespace("crosstalk", quietly = TRUE)) { df <- crosstalk::SharedData$new(mtcars) fs <- crosstalk::filter_select( id = "myselector", label = "select something", sharedData = df, group = ~cyl ) # The fs_nobootstrap object won't inject css into your page. fs_nobootstrap <- unstrap(fs) }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.