| uilist {shiny.semantic} | R Documentation |
This creates a list with icons using Semantic UI
uilist(data, icon, is_divided = FALSE, is_description = FALSE)
data |
A dataframe with columns 'header' and/or 'description' containing the list items headers and descriptions. 'description' column is optional and should be provided if 'is_description' parameter TRUE. |
icon |
A string with icon name. Empty string will render list without icons. |
is_divided |
If TRUE created list elements are divided |
is_description |
If TRUE created list will have a description |
list_content <- data.frame(
header = paste("Header", 1:5),
description = paste("Description", 1:5),
stringsAsFactors = FALSE
)
# Create a 5 element divided list with alert icons and description
uilist(list_content, "alert", is_divided = TRUE, is_description = TRUE)