Skip to contents

Turn an R list into an HTML list

Usage

list_to_li(list, list_type = "ul", class = NULL)

named_to_li(list, class = NULL, style = NULL)

Arguments

list

An R list

list_type

chr The list type, either ol or ul

class

a class for the list

Value

an HTML list

See also

Other golem: enurl(), is_shiny.tag(), jq_hide(), list_to_p(), make_action_button(), rep_br(), tagRemoveAttributes(), undisplay(), with_red_star()

Other ui: acc_list(), add_sass(), box_list(), bs4Alert(), bs_extract_status(), bs_statuses, col_10(), col_11(), col_12(), col_1(), col_2(), col_3(), col_4(), col_5(), col_6(), col_7(), col_8(), col_9(), col_auto(), copyright(), css_props(), dynamic_row(), enurl(), fa_arrow_icon(), icon_sb(), infoIcon(), jq_hide(), list_to_p(), make_action_button(), make_columns(), rep_br(), tagRemoveAttributes(), ui_row(), ui_tabs(), undisplay(), with_red_star()

Examples

list_to_li(c("a","b"))
#> <ul>
#>   <li>a</li>
#>   <li>b</li>
#> </ul>