slick_div: Create a DOM element for slickR

View source: R/slick_div.R

slick_divR 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')


slickR documentation built on Dec. 28, 2022, 2:41 a.m.