Skip to content

DocumentCardActions #145

Answered by jakubsob
BorisDelange asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @BorisDelange,

please take a look at this example:

library(shiny)
library(shiny.fluent)

ui <- fluidPage({
  previewImages <- list(
      list(
        previewImageSrc = "https://picsum.photos/318/196",
        width = 318,
        height = 200
      )
    )
  title <- "My title"
  DocumentCard(
    DocumentCardPreview(previewImages = previewImages),
    DocumentCardTitle(
      title = title,
      shouldTruncate = TRUE
    ),
    DocumentCardActivity(
      activity = "2022-03-23",
      people = list(list(name = "Annie Lindqvist"))
    ),
    DocumentCardActions(
      actions = list(
        list(
          iconProps = list(iconName = "Share"),
          onClick = htmlwidgets::JS("f…

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