stbaer / rangeslider-js

Lightweight rangeslider with touch support
http://stbaer.github.io/rangeslider-js/
MIT License
45 stars 13 forks source link

Custom css classes? #4

Closed adamsoffer closed 6 years ago

adamsoffer commented 6 years ago

The original library lets you override default classes:

{
    rangeClass: 'rangeslider',
    disabledClass: 'rangeslider--disabled',
    horizontalClass: 'rangeslider--horizontal',
    verticalClass: 'rangeslider--vertical',
    fillClass: 'rangeslider__fill',
    handleClass: 'rangeslider__handle'
}
stbaer commented 6 years ago

Hi @adamsoffer - sorry for the late reply, somehow missed this issue.

It's possible, but I don't see a big benefit in it and would like to keep this small. If theres a real use case for custom classes I would prefer giving the option to add additional classnames instead of overriding.