Learn R Programming

shinyMobile (version 0.7.0)

f7SocialCard: Create a Framework7 social card

Description

Build a Framework7 social card

Usage

f7SocialCard(..., author_img = NULL, author = NULL, date = NULL, footer = NULL)

Arguments

...

Card content.

author_img

Author img.

author

Author.

date

Date.

footer

Footer content, if any. Must be wrapped in a tagList.

Examples

Run this code
# NOT RUN {
if(interactive()){
 library(shiny)
 library(shinyMobile)

 shiny::shinyApp(
  ui = f7Page(
    title = "Social Card",
    f7SingleLayout(
     navbar = f7Navbar(title = "f7SocialCard"),
     f7SocialCard(
     author_img = "http://lorempixel.com/68/68/people/1/",
     author = "John Doe",
     date = "Monday at 3:47 PM",
     "What a nice photo i took yesterday!",
     img(src = "http://lorempixel.com/1000/700/nature/8/", width = "100%"),
     footer = tagList(
      f7Badge("1", color = "yellow"),
      f7Badge("2", color = "green"),
      f7Badge("3", color = "blue")
     )
    )
    )
  ),
  server = function(input, output) {}
 )
}

# }

Run the code above in your browser using DataLab