This repository has been archived by the owner on Apr 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp_ui.R
52 lines (48 loc) · 1.46 KB
/
app_ui.R
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
50
51
#' The application User-Interface
#'
#' @param request Internal parameter for `{shiny}`.
#' DO NOT REMOVE.
#' @import shiny
#' @noRd
app_ui <- function(request) {
tagList(
marcel(filename = "marcel.md"),
golem_add_external_resources(),
tableau_de_bord(
dash_sidebar(
dash_title(title = "Bonjour Quebec", icon="icon-bq_icons_planet:"),
badge(),
textInput("name", "What's your name?"),
mod_modal_helpbutton_ui("info1", "Jargon")
),
dash_tabs(
#maybe a little strange, but here we pass in the UI of a modal and the id that defines it.
tab_map(title = "Map", id = "map", outputFunction = mod_map_select_ui),
tab_map(title = "Site Map", id = "sitemap", outputFunction = mod_map_select_ui),
tab_map(title = "Ouranos", id = "ouranos_map", outputFunction = mod_map_select_ui),
tab_gen())
)
)
}
#' Add external Resources to the Application
#'
#' This function is internally used to add external
#' resources inside the Shiny application.
#'
#' @import shiny
#' @importFrom golem add_resource_path activate_js favicon bundle_resources
#' @noRd
golem_add_external_resources <- function(){
add_resource_path(
'www', app_sys('app/www')
)
tags$head(
favicon(ext = 'png'),
bundle_resources(
path = app_sys('app/www'),
app_title = 'mapselector'
)
# Add here other external resources
# for example, you can add shinyalert::useShinyalert()
)
}