Skip to content
This repository has been archived by the owner on Mar 4, 2024. It is now read-only.

Commit

Permalink
Erweiterung Filter
Browse files Browse the repository at this point in the history
  • Loading branch information
ShadowDemech committed May 13, 2023
1 parent 8e80c1b commit 39b7174
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions map/app.R
Expand Up @@ -56,8 +56,9 @@ sidebar <-dashboardSidebar(
menuItem("Map", tabName = "Map"),
menuItem("Tables", tabName= "Tables"),
menuItem("Charts", tabName= "Charts")),
pickerInput("serviceInput","Serviceangebot", choices=unique(data$Serviceangebot), options = list(`actions-box` = TRUE),multiple = T, selected = "SOF: E-Mail"),
pickerInput("ortInput","Ort", choices=unique(data$Ort), options = list(`actions-box` = TRUE),multiple = T)
pickerInput("serviceInput","Serviceangebot", choices=unique(data$Serviceangebot), options = list(`actions-box` = TRUE),multiple = T, selected = unique(data$Serviceangebot)),
pickerInput("ortInput","Ort", choices=unique(data$Ort), options = list(`actions-box` = TRUE),multiple = T, selected = unique(data$Ort)),
pickerInput("kategorieInput","Kategorie", choices=unique(data$Kategorie), options = list(`actions-box` = TRUE), multiple = T, selected = unique(data$Kategorie))
)


Expand Down Expand Up @@ -139,7 +140,7 @@ server <- function(input, output, session) {

output$table <- DT::renderDT({
data[c(1,2,5,7,9,16,19,20,21,23,24,25,26)] %>%
filter(Serviceangebot %in% input$serviceInput, Ort %in% input$ortInput)
filter(Serviceangebot %in% input$serviceInput, Ort %in% input$ortInput, Kategorie %in% input$kategorieInput)
})


Expand Down

0 comments on commit 39b7174

Please sign in to comment.