-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
186 additions
and
151 deletions.
There are no files selected for viewing
Empty file.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
user_guide_panel <- function() { | ||
tabPanel( | ||
"User guide", | ||
gov_main_layout( | ||
gov_row( | ||
column( | ||
12, | ||
h1("Department for Education (DfE) Analytical Services R-Shiny data dashboard template"), | ||
br(), | ||
br() | ||
), | ||
|
||
## Left panel ------------------------------------------------------- | ||
|
||
column( | ||
6, | ||
div( | ||
div( | ||
class = "panel panel-info", | ||
div( | ||
class = "panel-heading", | ||
style = "color: white;font-size: 18px;font-style: bold; | ||
background-color: #1d70b8;", | ||
h2("Contents") | ||
), | ||
div( | ||
class = "panel-body", | ||
tags$div( | ||
h3("Introduction"), | ||
p("This app demonstrates the DfE Analytical Services R-Shiny | ||
data dashboard template."), | ||
p("You might want to add some brief introductory text here | ||
alongside some links to different tabs within your | ||
dashboard. Here's an example of a link working:"), | ||
p(actionLink("link_to_app_content_tab", "Example tab 1")), | ||
p("You need to add an observeEvent() function to the server.R | ||
script for any link that navigates within your App.") | ||
), | ||
br() | ||
) | ||
) | ||
), | ||
), | ||
|
||
## Right panel ------------------------------------------------------ | ||
|
||
column( | ||
6, | ||
div( | ||
div( | ||
class = "panel panel-info", | ||
div( | ||
class = "panel-heading", | ||
style = "color: white;font-size: 18px;font-style: bold; | ||
background-color: #1d70b8;", | ||
h2("Background Info") | ||
), | ||
div( | ||
class = "panel-body", | ||
h3("Context and purpose"), | ||
p("This app is the DfE Analytical Service's R-Shiny template | ||
demonstration app and is being developed to provide a coherent | ||
styling for DfE dashboards alongside some useful example | ||
componenets that teams can adapt for their own uses."), | ||
p("DfE teams using this template should avoid changing the | ||
styling and layout, keeping the header, footer and side | ||
navigation list formats."), | ||
p("You might want to add some relevant background information | ||
for your users here. For example some useful links to your | ||
Explore Education Statistics (EES) | ||
publication, data sources and other relevant resources."), | ||
h3("Guidance sources"), | ||
p("For example, here we'll add some of the key resources we draw | ||
on to guide styling and vizualisation...") | ||
) | ||
) | ||
) | ||
) | ||
) | ||
) | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,15 @@ | ||
# Add custom functions used across multiple places in the app into this script | ||
|
||
expandable <- function(input_id, label, contents) { | ||
gov_details <- shiny::tags$details( | ||
class = "govuk-details", id = input_id, | ||
shiny::tags$summary( | ||
class = "govuk-details__summary", | ||
shiny::tags$span( | ||
class = "govuk-details__summary-text", | ||
label | ||
) | ||
), | ||
shiny::tags$div(contents) | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.