Learn R Programming

shiny.semantic (version 0.3.0)

uilist: Create Semantic UI list with header, description and icons

Description

This creates a list with icons using Semantic UI

Usage

uilist(data, is_icon = FALSE, is_divided = FALSE, is_description = FALSE)

Arguments

data

A dataframe with columns `header` and/or `description`, `icon` containing the list items headers, descriptions and icons. `description` column is optional and should be provided if `is_description` parameter TRUE. `icon` column is optional and should be provided if `is_icon` parameter TRUE. Icon column should contain strings with icon names available here: https://semantic-ui.com/elements/icon.html

is_icon

IF TRUE created list has icons

is_divided

If TRUE created list elements are divided

is_description

If TRUE created list will have a description

Examples

Run this code
# NOT RUN {
list_content <- data.frame(
  header = paste("Header", 1:5),
  description = paste("Description", 1:5),
  icon = paste("home", 1:5),
  stringsAsFactors = FALSE
)

# Create a 5 element divided list with alert icons and description
uilist(list_content, is_icon = TRUE, is_divided = TRUE, is_description = TRUE)
# }

Run the code above in your browser using DataLab