# NOT RUN {
if (interactive()) {
library(shiny)
library(shinydashboard)
shinyApp(
ui = dashboardPage(
dashboardHeader(),
dashboardSidebar(),
dashboardBody(
socialBox(
title = "Social Box",
subtitle = "example-01.05.2018",
src = "https://adminlte.io/themes/AdminLTE/dist/img/user4-128x128.jpg",
"Some text here!",
attachmentBlock(
src = "https://adminlte.io/themes/AdminLTE/dist/img/photo1.png",
title = "Test",
title_url = "https://google.com",
"This is the content"
),
comments = tagList(
lapply(X = 1:10, FUN = function(i) {
boxComment(
src = "https://adminlte.io/themes/AdminLTE/dist/img/user3-128x128.jpg",
title = paste("Comment", i),
date = "01.05.2018",
paste0("The ", i, "-th comment")
)
})
),
footer = "The footer here!"
)
),
title = "socialBox"
),
server = function(input, output) { }
)
}
# }
Run the code above in your browser using DataLab