R/app_ui.R

Defines functions golem_add_external_resources app_ui

#' @import shiny
app_ui <- function() {
  tagList(
    # Leave this function for adding external resources
    # from inst/app/www
    golem_add_external_resources(),
    golem::js(),
    golem::favicon(),
    # List the first level UI elements here 
    fluidPage(
      h1("genderedstreetnames"),
      #debugging
      actionButton("browser", "browser"),
      tags$script("$('#browser').show();"),
      mod_select_dataset_ui("select_dataset_ui_1"),
      mod_radio_datatable_ui("radio_datatable_ui_1"),
      verbatimTextOutput('selected')
    )
  )
}

golem_add_external_resources <- function(){
  
  addResourcePath(
    'www', system.file('app/www', package = 'genderedstreetnames')
  )
 
  tagList(
    # Add here all the external resources
    # If you have a custom.css in the inst/app/www
    #tags$link(rel="stylesheet", type="text/css", href="www/custom.css")
  )
}
giocomai/genderedstreetnames documentation built on June 21, 2020, 8:31 p.m.