R/widget-proposal-stage.R

Defines functions proposal_stage_ proposal_stage

Documented in proposal_stage

#' Find proposals based on current stage
#'
#' @param ... stage code(s)
#'
#' @export
proposal_stage <- function(...) {
    reroute(proposal_stage_(prep_dots(...)))
}

proposal_stage_ <- function(stages) {
    widget_builder_custom(
        custom = proposal_query(),
        id_field = "assignment_id",
        id_type = "assignment_id",
        parameter = string_param("current_stage", stages)
    )
}
cwolfsonseeley/discoveryengine documentation built on Sept. 30, 2023, 2:07 p.m.