Closed lewisjenkins closed 4 years ago
Hi, there is no option to save indexes to input. But if you read slider values with JavaScript, it is easy.
In onChange/onFinish
callbacks you will receive data object as a first argument, like this:
onFinish: function (data) {
console.log(data.from); // index
console.log(data.from_value); // actual value
}
When using custom values, is there a way of returning the index instead of the value?
In this example, instead of saving 10;10000 I would like an option to save 1;4.
In another comment you offered to add a
return_value
option. This would be ideal.Thanks for your work on this plugin :)