You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A proposal to add to wiki or readme:
To use fd-slider with AngularJs by a directive:
.directive('fdSlider',["$parse",function($parse){returnfunction(scope,elm,attrs){varscaleStr=attrs.scale||"{}";varscale=$.parseJSON(scaleStr);if("fdSlider"inwindow){fdSlider.createSlider({// Associate an inputinp: elm[0],// Declare a stepstep: attrs.step||1,// Declare a maxStep (for keyboard users)maxStep: attrs.step||1,// Min valuemin: attrs.min||1,// Max valuemax: attrs.max||100,// Define a scale (multiple points supported, I'm just using one for the// demo)scale: scale,callbacks : {"change": [function(inp){scope.$apply(attrs.sliderModel+"="+inp.value);}]},// Use the "jump to click point" animationanimation: "jump"});}};}]);
A proposal to add to wiki or readme:
To use fd-slider with AngularJs by a directive:
and a html sample:
And thank you very much for your excellent plugin.
Alexandre Richonnier
The text was updated successfully, but these errors were encountered: