soanvig / mm-jsr

Range input solution without dependencies
https://soanvig.github.io/mm-jsr
GNU Lesser General Public License v3.0
56 stars 16 forks source link

setvalue #39

Closed marcoas closed 5 years ago

marcoas commented 5 years ago

does not work setvalue It does not move. I'm missing something?


var rangeInput;
...
function crearRange(){
  rangeInput = new JSR(['#rangeDesde', '#rangeHasta'], {
    sliders: 2,
    step: 1,
    min: 0,
    max: maxPrecio,
    values: [0, maxPrecio],
    labels: {
      formatter: function(v){
        return '$ '+v;
      }
    }
  });

}

later....

rangeInput.setLimit( 1, 200 ).refresh();

But I do not see any change on the screen

marcoas commented 5 years ago

problem solved It was my mistake sorry