Comments (8)
The slider is just a component representing min / max values. Its responsibility is not to validate your inputs.
from angularjs-slider.
Then at-least this component should provide a callback or something for validating inputs.
from angularjs-slider.
Again, this is just the presentation component. All user inputs and validating should be handled outside of it in your code. Another words it expects to get already validated inputs (min, max, floor, ceil... ).
from angularjs-slider.
And how would that be? How can we prevent a user from sliding the min and max pointers to the same value in case of range slider?
from angularjs-slider.
And I am not concerned about the feeding invalid inputs initially to the slider, I am concerned about the case when user can slide the min and max pointer to the same value.
from angularjs-slider.
Ok now i get what you are saying. Please check the branch validator and rzSliderValidate attribute. I started implementing it but there are still few problems to solve before i merge to master.
from angularjs-slider.
Its looking good. I tried it and yes there are some problems. But yes this was exactly what I was talking about. 👍
from angularjs-slider.
Now it could be done by using slideEnded event and validating model.
from angularjs-slider.
Related Issues (20)
- A Square border box is displaying while dragging the slider in mobile HOT 4
- Floor of the slider is equal to NaN after changing the state HOT 4
- Cant type into input box
- rzSlider onEnd event is called everytime when there is a user action in UI. HOT 2
- How to show values below the slider and modifying the tick color in the dynamic selection bar color? HOT 1
- rzslider sometimes shows NaN for rz-slider-model and sometimes shows value when initialized from javascript
- Slider stop working after last update HOT 1
- onEnd is not working for me HOT 1
- rzSliderTplUrl should be marked as optional. HOT 2
- Slider looses responsiveness on zooming and reloading page HOT 2
- Docs broken link to "Open Source Stamina" HOT 3
- Slider not set position on load inside Bootstrap modal HOT 3
- Last tick not display as expected on first load HOT 2
- Range slider: Identify min and max on change event HOT 3
- Render pointer aligned to track centre (overhanging) HOT 4
- Slider doesn't work properly when parent container is rotated HOT 5
- brocken compiling with less v4 HOT 6
- Using invalid values for ticks and ranges HOT 2
- What are the steps to run demo app locally? Not import to another project, clone repo and ng serve
- how to update aria label value
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angularjs-slider.