display_as_list: Create an HTML list

View source: R/display_as_list.R

display_as_listR Documentation

Create an HTML list

Description

Create an HTML list

Usage

display_as_list(x, type = c("ul", "ol"), ...)

display_as_ul(x, ...)

display_as_ol(x, ...)

Arguments

x

an R object (a vector or a list), each element of which will be wrapped in <li> tags and inserted into a <ul> or <ol> tag. If x is a list of lists, it will result in nested <ul>/<ol> lists

type

the type of HTML list : unordered or ordered

...

passed to shiny::tags

Examples

display_as_list(c("a", "b", "c"))
display_as_list(c("a", "b", "c"), type="ol")
display_as_list(list("a", list("a.1", "a.2"), "b"))
display_as_list(list("a", list("<a href='foo.html'>a.1</a>", "a.2"), "b"))


jiho/yssr documentation built on Feb. 4, 2023, 7:48 p.m.