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

Commit

Permalink
Merge pull request #4 from HendrikSchultheis/orNumeric
Browse files Browse the repository at this point in the history
orNumeric: return slider values
  • Loading branch information
HendrikSchultheis authored Jan 15, 2018
2 parents 86af54c + 6790e6a commit 95a426f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
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.

0 comments on commit 95a426f

Please sign in to comment.