Skip to content
Discussion options

You must be logged in to vote

Hello @giadasp,

You can use FontIcon or an Icon as items of a DetailsList in the following way:

library(shiny)
library(shiny.fluent)

style <- list(fontSize = 50, margin = 10)
items <- list(
  list(key = "1", name = "Mark", surname = "Swanson", icon = FontIcon(iconName = "CompassNW", style = style)),
  list(key = "2", name = "Josh", surname = "Johnson", icon = Icon(iconName = "CompassNW", style = style))
)

columns <- list(
  list(key = "name", fieldName = "name", name = "Name"),
  list(key = "surname", fieldName = "surname", name = "Surname"),
  list(key = "icon", fieldName = "icon", name = "Icon")
)

shinyApp(
  ui = DetailsList(items = items, columns = columns),
  server = function(inp…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jakubsob
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants