Skip to content
Open
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
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,5 @@ Suggests:
bslib
URL: https://rstudio.github.io/crosstalk/, https://github.com/rstudio/crosstalk
BugReports: https://github.com/rstudio/crosstalk/issues
RoxygenNote: 7.2.3
RoxygenNote: 7.3.2
Encoding: UTF-8
8 changes: 7 additions & 1 deletion R/controls.R
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,8 @@ inlineCheckbox <- function(id, value, label) {
#' words, the min and max can be dragged together. If \code{FALSE}, the range
#' cannot be dragged.
#' @param min The leftmost value of the slider. By default, set to the minimal
#' number in input data.
#' number in input data. If set to \code{NA}, the slider will have only one
#' handle for updating the \code{max}.
#' @param max The rightmost value of the slider. By default, set to the maximal
#' number in input data.
#' @examples
Expand Down Expand Up @@ -319,6 +320,11 @@ filter_slider <- function(id, label, sharedData, column, step = NULL,
max <- max(values)
value <- range(values)

if (isTRUE(is.na(min))) {
min <- min(values)
value <- max
}

ord <- order(col)
options <- list(
values = col[ord],
Expand Down
2 changes: 1 addition & 1 deletion inst/www/js/crosstalk.js

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

4 changes: 2 additions & 2 deletions inst/www/js/crosstalk.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion inst/www/js/crosstalk.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion inst/www/js/crosstalk.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion javascript/src/input_slider.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ input.register({
if ($el.data("ionRangeSlider").options.type === "double") {
return [convert(result.from), convert(result.to)];
} else {
return convert(result.from);
return [-Infinity, convert(result.from)];
}
}

Expand Down
3 changes: 2 additions & 1 deletion man/filter_slider.Rd

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