R/tab.R

Defines functions ui_element.tab2 ui_element.tab1 ui_element.default ui_element

#' @title Tab 1 user interface element
#' @description Creates tab 1 user interface element
ui_element <- function(tab, ...) UseMethod("ui_element")

ui_element.default <- function(tab, ...) {
  return(NULL)
}

# This tab corresponds to tab 1 in the `mainDashboard.yaml` file
ui_element.tab1 <- function(tab, wfb, est_ccs, covid = covid, ...) {
  demand.ui(wfb = wfb, est_ccs = est_ccs, covid = covid)
}

ui_element.tab2 <- function(...) {
  docs.ui()
}
Texas-Policy-Lab/childcare_app documentation built on March 22, 2021, 12:42 p.m.