Skip to content
This repository has been archived by the owner on May 30, 2024. It is now read-only.

Reverse slider direction #286

Open
joelworsham opened this issue Nov 2, 2017 · 3 comments
Open

Reverse slider direction #286

joelworsham opened this issue Nov 2, 2017 · 3 comments

Comments

@joelworsham
Copy link

Is it possible? For me specifically, I want to reverse the vertical direction so the top of the slider is the smallest value and the bottom is the highest value.

@PardeepWildnet
Copy link

Same in case of HORIZONTAL direction , is it possible to reverse the order from right to left ?

@joelworsham
Copy link
Author

joelworsham commented Nov 7, 2017

I found a workaround. Set a hidden input as the input whose value is used, and then simply update that input value onInit and onSlide like so:

onSlide: function (position, value) {

  let $altInput = $('#alt-input');
  let newValue  = this.max - this.value + this.min;

  $altInput.val(newValue);
}

@NayanKhedkar
Copy link

@joelworsham yes,it is possible.This feature has been implemented in PR:#245

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants