timeline: Create an timeline information for the main body of a...

Description Usage Examples

Description

An information timeline

Usage

1
timeline(timeline_df = NULL)

Examples

 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
## Only run this example in interactive R sessions
if (interactive()) {
library(shiny)
library(shinydashboard)

df <- data.frame(
  date=c(Sys.Date()-1, Sys.Date()),
  time=c(format(Sys.time(),'%H:%M'), format(Sys.time()-180,'%H:%M')),
  header=c("V0.01", "V0.02"),
  body=c("Start first version 0.01","version 0.02"),
  footer=c("Footer", "Footer"))

server <- function(input, output) {
}

body <- dashboardBody(
  timeline(df)
)

ui <- dashboardPage(
  dashboardHeader(disable = TRUE),
  dashboardSidebar(disable = TRUE),
  body
)

shinyApp(ui, server)
}

jeevanyue/ShinyFuncs documentation built on May 24, 2019, 7:14 a.m.