Skip to content
Snippets Groups Projects
Commit a43003e1 authored by thierrychambert's avatar thierrychambert
Browse files

Started to add some popover Q-mark buttons

parent 47ba2721
No related branches found
No related tags found
No related merge requests found
...@@ -6,6 +6,7 @@ rm(list = ls(all.names = TRUE)) ...@@ -6,6 +6,7 @@ rm(list = ls(all.names = TRUE))
## Load libraries ## Load libraries
library(shiny) library(shiny)
library(shinyjs) library(shinyjs)
library(shinyBS)
library(shinyMatrix) library(shinyMatrix)
library(tidyverse) library(tidyverse)
library(eolpop) library(eolpop)
...@@ -91,14 +92,39 @@ rm(list = ls(all.names = TRUE)) ...@@ -91,14 +92,39 @@ rm(list = ls(all.names = TRUE))
# Select type of analysis : cumulated impacted or not # Select type of analysis : cumulated impacted or not
{column(width = 4, {column(width = 4,
radioButtons(inputId = "analysis_choice", # radioButton : Choix du type d'analyse
h4(strong("Slectionner un type d'analyse")), {radioButtons(inputId = "analysis_choice",
choices = c("Impacts non cumuls" = "scenario", "Impacts cumuls" = "cumulated")), label = h4(strong("Type d'analyse"),
bsButton("Q_analysis_choice", label = "", icon = icon("question"), size = "extra-small"),
selectInput(inputId = "species_choice", bsPopover(id = "Q_analysis_choice",
title = "Choix du type d\\'analyse",
content = HTML(
"<b>Impacts non cumuls</b> : pour analyser l\\'impact d\\'<b>un seul parc olien</b>. <br><br> <b>Impact cumuls</b> : pour analyser l\\'impact de <b>plusieurs parcs oliens</b> (attention : il faudra fournir des valeurs de mortalits propres chaque parc)."
),
placement = "right",
trigger = "click",
options = list(container='body')
)
),
choices = c("Impacts non cumuls" = "scenario", "Impacts cumuls" = "cumulated")
)},
# Choix de l'espce (selectInput)
{selectInput(inputId = "species_choice",
selected = 1, width = '80%', selected = 1, width = '80%',
label = h4(strong("Slectionner une espce")), label = h4(strong("Slectionner une espce"),
choices = species_list), bsButton("Q_species_choice", label = "", icon = icon("question"), size = "extra-small"),
bsPopover(id = "Q_species_choice",
title = "Choix de l\\'espce",
content = HTML(
"Ncessaire pour fixer les valeurs de <b>paramtres dmographiques</b> (survie, fcondit). <br> La liste fournie correspond une liste d\\'espces prioritaires. Au besoin, une option \\'espce gnrique\\' est disponible la fin de la liste."
),
placement = "right",
trigger = "click",
options = list(container='body')
)
),
choices = species_list)},
)}, # close column )}, # close column
# Show vital rate values # Show vital rate values
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment