-
-
Notifications
You must be signed in to change notification settings - Fork 495
Add pointer colour to slider #225
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
Current coverage is
|
I added an example to your PR. I see that you have directly edited the dist file which is not really a good idea, you should only edit the src files and then generate the files by running Also, is the goal of this new option to change the color dynamically?Somehow like the Last but not least, you should also add a test case for this option... |
Ah sorry about that! I was working directly in the dist file because I wanted to explicitly use the included HTML template. Yes that's correct, but I left it as a basic attribute instead of creating a function for it. That way when you change pointerColour attribute, the options watch function is fired and updates the CSS accordingly. Oh that's right, thank you! Shall I add a test case or will you? Thanks for the tips 👍 :) |
I just added a guide for contributing: https://github.com/angular-slider/angularjs-slider/blob/master/CONTRIBUTING.md . Even if it's seems more performant than a function, using a basic attribute will rebuild the slider at each change while using a function will only update the css. So I insist, you should use the same way than I did for |
Thanks for that! :) Ahh neat! I learned something new. The next step would be to make all of your suggested changes and then submit a new PR? |
Nope you can just add more commits to this PR. Once eveyrhting will be good, you'll only need to rebase everything so I can merge and you will be good to go! ;) |
Neat! Thanks a lot for getting back to me so fast :) |
Any update on this? |
As mentioned at he discussion page for this issue I'd created a pull request by myself. Best regards, |
Thanks BlackIPS, I haven't had much time out of work to get around to this feature. |
Closing since #253 has been merged |
Developers are able to dynamically update the pointer colour on the slider.
Demo: http://jsfiddle.net/2n9u63kr/