slick_div {slickR} | R Documentation |
Create a DOM element for slickR
Description
Wraps an R object in slickR compatible DOM
Usage
slick_div(
x,
css = htmltools::css(marginLeft = "auto", marginRight = "auto"),
type = "img",
links = NULL
)
Arguments
x |
object |
css |
css object, Default: htmltools::css(marginLeft='auto',marginRight='auto') |
type |
character, type of DOM, Default: 'img' |
links |
character, links to use on the input object, Default: NULL |
Details
Method converts xml_document, htmlwidget, character, or list of objects to a compatible DOM
Value
list of shiny tag objects
See Also
Other html:
slick_list()
Examples
# image
slick_div(nba_team_logo$uri[1])
# vector of images
slick_div(nba_team_logo$uri[c(1:5)])
# text
slick_div('abc',type = 'p')
[Package slickR version 0.6.0 Index]