bs4Dash (version 0.5.0)

attachmentBlock: AdminLTE3 attachment container

Description

Create an attachment container, nice to wrap articles...

Usage

attachmentBlock(..., src = NULL, title = NULL, title_url = NULL)

Arguments

...

Any element.

src

Url or path to the image.

title

Attachment title.

title_url

External link.

Examples

Run this code
# NOT RUN {
if (interactive()) {
 library(shiny)
 library(bs4Dash)
 shinyApp(
  ui = bs4DashPage(
    bs4DashNavbar(),
    bs4DashSidebar(),
    bs4DashControlbar(),
    bs4DashBody(
     bs4Card(
      title = "Attachment example",
      attachmentBlock(
       src = "https://adminlte.io/themes/dev/AdminLTE/dist/img/photo1.png",
       title = "Test",
       title_url = "http://google.com",
       "This is the content"
      )
     )
    ),
    title = "AttachmentBlock"
  ),
  server = function(input, output) { }
 )
}

# }

Run the code above in your browser using DataCamp Workspace