R/shinyAppUI.R

Defines functions shinyAppUI

Documented in shinyAppUI

#' Shiny app server object
#'
#' @importFrom graphics hist
#' @import shiny
#' @importFrom shinysurveys surveyOutput

# Define UI for slider demo app ----
shinyAppUI <- function() {
  df <- data.frame(question = "What is your favorite food?",
                   option = "Your Answer",
                   input_type = "text",
                   input_id = "favorite_food",
                   dependence = NA,
                   dependence_value = NA,
                   required = F)
  
  fluidPage(
  surveyOutput(df = df,
               survey_title = "Hello, World!",
               survey_description = "Welcome! This is a demo survey showing off the {shinysurveys} package.")
)
}
jhudsl/retriever documentation built on Dec. 21, 2021, 12:03 a.m.