-
Notifications
You must be signed in to change notification settings - Fork 175
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
Feature Request : Is there a possibility to disable only few ticks in a slider ? #315
Comments
There is an option called "ticksArray". It takes an array of numbers. These numbers are indexes of the values of the stepsArray against which you to show ticks. Using this array you will be able to show selective ticks. |
@haadbaig Hey Haad, I need to add minor ticks. Is there a way I can show them? |
HI Usman, Can you please explain what do you mean by minor ticks? |
@haadbaig I need slider to look like this. Please check this screenshot for your reference. As you can see there are ticks, bigger one are called major ticks and smaller one are called minor ticks. I'm able to show major ticks but can't see how I can show minor ticks. |
Unfortunately, there is not such option in my knowledge that would allow dynamic resizing of the slider ticks. However this can be achieve by manually adding underscores in the stepsArray like this: stepsArray: [ By doing this and adjusting sum : :deep CSS of the ticks, I believe, this is a workaround that can work in this case. Incase you find any other solution for this, enlighten me as well. |
Requirement : Possibility to disable only few ticks in a slider, and not the entire slider
Approach : I tried to hide the ticks via css and also specify 'pointer events : none'. Even though the ticks aren't visible, if i click on it's position, the slider pointer moves
Any suggestion/help appreciated
Thank you !
The text was updated successfully, but these errors were encountered: