Learn R Programming

gentelellaShiny (version 0.1.0)

socialBox: A social box to present a product or people

Description

A social box to present a product or people

Usage

socialBox(..., width = 3, height = 390, title = NULL, url_1 = NULL,
  url_2 = NULL, media_1 = NULL, media_2 = NULL, profile_img = NULL,
  footer = NULL)

Arguments

...

elements to put in the box

width

Box width

height

Box height

title

Box title

url_1

Box link 1

url_2

Box link 2,

media_1

Media name like twitter, facebook, ...

media_2

Media name like twitter, facebook, ...

profile_img

Box profile image

footer

Box footer content, if any.

Examples

Run this code
# NOT RUN {
if (interactive()) {
 library(shiny)
 library(gentelellaShiny)
 shinyApp(
  ui = gentelellaPageCustom(
   gentelellaBody(
    socialBox(
     title = "Social Box",
     url_1 = "https://www.facebook.com",
     url_2 = "https://twitter.com",
     media_1 = "facebook",
     media_2 = "twitter",
     profile_img = "https://image.flaticon.com/icons/svg/17/17004.svg",
     footer = "If you\'ve decided to go in development
     mode and tweak all of this a bit, there are few
     things you should do.",
     socialStats(
      socialStatsItem(value = 123, name = "Articles"),
      socialStatsItem(value = 1234, name = "Followers"),
      socialStatsItem(value = 435, name = "Following")
     )
    )
   )
  ),
  server = function(input, output, session) {}
 )
}

# }

Run the code above in your browser using DataLab