Skip to content

Instantly share code, notes, and snippets.

@shaun-jacks
Created February 18, 2019 06:41
Show Gist options
  • Save shaun-jacks/f311a6363c9d63648c38ec4fd211980e to your computer and use it in GitHub Desktop.
Save shaun-jacks/f311a6363c9d63648c38ec4fd211980e to your computer and use it in GitHub Desktop.
UI code for stage 2 within renderUI for shiny vision project
# stage 2 within our renderUI function
shiny::fluidPage(
shiny::tagList(
# Row 1: our analyzed image
shiny::fluidRow(
column(8, align = "center",
shinycssloaders::withSpinner( # Spinner loading bar
imageOutput("picture2"), # Outputted Image
color = '#999999'
)
)
),
br(),
br(),
# Row 2: our table results
shiny::fluidRow(
column(8, align = "center",
shinydashboard::box(
width=12,
title = "Analysis Results",
solidHeader = TRUE,
DT::dataTableOutput("results"), # Outputted table
collapsible = TRUE,
collapsed = FALSE,
status = "primary"
)
)
),
br(),
br(),
# Row three: our restart button
shiny::fluidRow(
column(8, align = "center",
shiny::actionButton("reset", "Restart")
)
)
)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment