Skip to content
This repository has been archived by the owner. It is now read-only.

orNumeric: return slider values #4

Merged
merged 1 commit into from
Jan 15, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions R/orNumeric.R
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ orNumericUI <- function(id){
#' @param zoomable Boolean to enable zooming. Redefine the sliders range. Defaults to TRUE.
#' @param reset A reactive which will trigger a module reset on change.
#'
#' @return Returns a reactive containing a named list with the label, the selected choices as a character vector (text) and a boolean vector of length \code{length(choices)} (bool), indicating whether a item has been chosen. If no item has been chosen, the return is \code{TRUE} for items.
#' @return Returns a reactive containing a named list with the label, the selected choices as a character vector (text), a boolean vector of length \code{length(choices)} (bool), and a vector of the selected value(s) (value), indicating whether a item has been chosen. If no item has been chosen, the return is \code{TRUE} for items.
#'
#' @export
orNumeric <- function(input, output, session, choices, value, label = "Column", step = 100, stepsize = NULL, min. = shiny::reactive(min(choices.r(), na.rm = TRUE)), max. = shiny::reactive(max(choices.r(), na.rm = TRUE)), label.slider = NULL, zoomable = TRUE, reset = NULL){
Expand Down Expand Up @@ -343,7 +343,8 @@ orNumeric <- function(input, output, session, choices, value, label = "Column",
list(
label = label,
bool = selected(),
text = text
text = text,
value = input$slider
)
})

Expand Down
2 changes: 1 addition & 1 deletion man/orNumeric.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.