Description Usage Arguments Author(s) See Also Examples
attachmentBlock create an attachment container, nice to wrap articles... and insert in a box.
1 |
... |
Any element. |
image |
url or path to the image. |
title |
Attachment title. |
href |
External link. |
David Granjon, dgranjon@ymail.com
Other boxWidgets:
bs4CardLabel()
,
bs4CardSidebar()
,
bs4Carousel()
,
bs4SocialCard()
,
bs4Timeline()
,
cardDropdown()
,
cardProfile()
,
descriptionBlock()
,
userPost()
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | if (interactive()) {
library(shiny)
library(bs4Dash)
shinyApp(
ui = dashboardPage(
dashboardHeader(),
dashboardSidebar(),
dashboardBody(
box(
title = "attachmentBlock example",
attachmentBlock(
image = "https://adminlte.io/themes/AdminLTE/dist/img/photo1.png",
title = "Test",
href = "https://google.com",
"This is the content"
)
)
),
title = "attachmentBlock"
),
server = function(input, output) { }
)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.