Description Usage Arguments Author(s) Examples
A social box to present a product or people
1 2 3 |
... |
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. |
David Granjon, dgranjon@ymail.com
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | 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) {}
)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.