-
-
Notifications
You must be signed in to change notification settings - Fork 497
Add a rzSliderShowTicks #68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
I'm not using it atm. but it is a nice feature, so: +1 |
It is a good idea, but I was trying it out on the fiddle and when there are ticks, you can no longer click on the timeline bar and have the handle move to that point. However, clicking above the tick still works. Also, is a table really the best option for displaying ticks? |
Indeed the ticks should be under the bar that's why. I'll rebase it and fix it. About the table, why not? |
I just thought there may be a better approach because it is not tabular data. |
Actually, the trick with the table is that you don't need to specify each tick's position. Just give the total width and they will be equally spread. |
@adgoncal rebased so now the ticks are under the bar. |
Cool! |
Actually, the limit with the current table method is that if you want to draw circle as ticks, it is not possible. Indeed, it's using td borders... |
I have replaced the table method by a method with ul displayed with flex. Now you can use whatever you want for the ticks: even circles ;) |
Add a rzSliderShowTicks and rzSliderShowTicksValue
It displays a tick for each possible value. See the Example on the demo page or on this fiddle.