akveo / blur-admin

AngularJS Bootstrap Admin Panel Framework
http://akveo.github.io/blur-admin/
Other
11.37k stars 3.09k forks source link

How to use javascript get and set the value in ion-slider? #371

Open DevilinOreki opened 6 years ago

DevilinOreki commented 6 years ago

This is code in blur-admin,but I can't get the value after I change the slider.

I use it by angular.Please answer me the way.Thank you.

I try to add 'on-change' or 'onChange',it isn't work. (ㄒoㄒ)

<ion-slider type="single" grid="true" from="5" step="1000" values="['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']" disable="false"> </ion-slider>

BrotherPeng commented 6 years ago

https://github.com/kashban/ionRangeSlider-Angular-Directive

In your controller $scope.rangeFinishCallback = function(sliderObj){ var newValue = sliderObj.from; }