INNER CODE UNIT · JavaScript
slider_min
tidyverse/datascience-box · _freeze/site_libs/datatables-binding-0.23/datatables.js:557
var slider_min = function() {
return filter.noUiSlider('options').range.min;
};
var slider_max = function() {
return filter.noUiSlider('options').range.max;
};
$input.on({
focus: function() {
$x0.show().trigger('show');
// first, make sure the slider div leaves at least 20px between
// the two (slider value) span's
$x0.width(Math.max(160, $span1.outerWidth() + $span2.outerWidth() + 20));
// then, if the input is really wide or slider is vertical,
// make the slider the same width as the input
if ($x0.outerWidth() < $input.outerWidth() || data.vertical) {
$x0.outerWidth($input.outerWidth());
}
// make sure the slider div does not reach beyond the right margin