Description Usage Arguments Note Author(s) Examples
Create a timeline block
1 | bs4Timeline(..., reversed = TRUE, width = 6)
|
... |
slot for bs4TimelineLabel or bs4TimelineItem. |
reversed |
Whether the timeline is reversed or not. |
width |
Timeline width. Between 1 and 12. |
reversed is useful when the user wants to use the timeline inside a box.
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 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 | if(interactive()){
library(shiny)
library(bs4Dash)
shiny::shinyApp(
ui = bs4DashPage(
navbar = bs4DashNavbar(),
sidebar = bs4DashSidebar(),
controlbar = bs4DashControlbar(),
footer = bs4DashFooter(),
title = "test",
body = bs4DashBody(
bs4Card(
title = "Timeline",
bs4Timeline(
width = 12,
reversed = TRUE,
bs4TimelineEnd(status = "danger"),
bs4TimelineLabel("10 Feb. 2014", status = "info"),
bs4TimelineItem(
elevation = 4,
title = "Item 1",
icon = "gears",
status = "success",
time = "now",
footer = "Here is the footer",
"This is the body"
),
bs4TimelineItem(
title = "Item 2",
border = FALSE
),
bs4TimelineLabel("3 Jan. 2014", status = "primary"),
bs4TimelineItem(
elevation = 2,
title = "Item 3",
icon = "paint-brush",
status = "warning",
bs4TimelineItemMedia(src = "http://placehold.it/150x100"),
bs4TimelineItemMedia(src = "http://placehold.it/150x100")
),
bs4TimelineStart(status = "danger")
)
)
)
),
server = function(input, output) {}
)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.