Skip to content

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

Closed
wants to merge 3 commits into from
Closed

Add pointer colour to slider #225

wants to merge 3 commits into from

Conversation

mtucciarone
Copy link

Developers are able to dynamically update the pointer colour on the slider.

Demo: http://jsfiddle.net/2n9u63kr/

@codecov-io
Copy link

Current coverage is 100.00%

Merging #225 into master will not affect coverage as of 0ac2618

@@            master    #225   diff @@
======================================
  Files            1       1       
  Stmts          622     624     +2
  Branches         0       0       
  Methods          0       0       
======================================
+ Hit            622     624     +2
  Partial          0       0       
  Missed           0       0       

Review entire Coverage Diff as of 0ac2618

Powered by Codecov. Updated on successful CI builds.

@ValentinH
Copy link
Member

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 npm build.

Also, is the goal of this new option to change the color dynamically?Somehow like the getSelectionBarColor option?

Last but not least, you should also add a test case for this option...

@mtucciarone
Copy link
Author

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 👍 :)

@ValentinH
Copy link
Member

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 getSelectionBarColor since it's more efficient.

@mtucciarone
Copy link
Author

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?

@ValentinH
Copy link
Member

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! ;)

@mtucciarone
Copy link
Author

Neat! Thanks a lot for getting back to me so fast :)

@ValentinH
Copy link
Member

Any update on this?

@BlackIPS
Copy link
Contributor

BlackIPS commented Feb 5, 2016

As mentioned at he discussion page for this issue I'd created a pull request by myself.

#253

Best regards,
Steffen

@mtucciarone
Copy link
Author

Thanks BlackIPS, I haven't had much time out of work to get around to this feature.

@ValentinH
Copy link
Member

Closing since #253 has been merged

@ValentinH ValentinH closed this Feb 8, 2016
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

Successfully merging this pull request may close these issues.

4 participants