jQuery UI Widgets › Forums › Plugins › AngularJS › jqx-slider: value as integral rather than real
Tagged: Angular, angularjs, integer, jqxslider, ng-model, number, slider
This topic contains 1 reply, has 2 voices, and was last updated by Dimitar 5 years, 6 months ago.
Dear jqWidgets team
I like to use <jqx-slider> with ng-model=”myVar” to directly put the selected value in the scope.
However, the myVar should be a integral number, not a real. Can I force it to be an integer?
Thanks in advance for your response!
To achieve this, we suggest you set the slider properties step and mode to 1 and ‘fixed’ respectively.
You must be logged in to reply to this topic.