Skip to content
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

How to change handler style? #116

Open
zhaoyi0113 opened this issue Apr 5, 2018 · 2 comments
Open

How to change handler style? #116

zhaoyi0113 opened this issue Apr 5, 2018 · 2 comments

Comments

@zhaoyi0113
Copy link

I can see there are different handler styles on the demo page (https://whoisandy.github.io/react-rangeslider/) like below screenshot. I wonder how I can change the handler to circle or rectangle.

image

@haruelrovix
Copy link

@zhaoyi0113 It's stated implicitly. Please try to clone the repo and take a look on the docs.

<div className='slider-vertical'>

and the respective .less styling.

.slider-vertical {

@benjaminadk
Copy link

custom example

In order to customize the style (for custom video controls in photo) I just copied the css into my project and editted it to meet my needs. Looking at the source code helps to see how this component is put together. The docs recommend importing the stylesheet which is fine if you want the default look. I also figured out that wrapping the slider in a container div allowed me to add other event listeners - for mouse wheel events - for example. Figured I would leave a comment just because it look a little time and tinkering to figure out what I have so far. Great, flexible component.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants