-
Notifications
You must be signed in to change notification settings - Fork 89
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
Request for help, how to specify a value through javascript. #29
Comments
Hey @natecox there is actually no way to do that currently, but I will add one asap. Thanks for bringing this up! |
I would like to be able to do this as well. I'm using AngularJS and created a directive for your component but it doesn't work properly with ngModel. The input field value is set properly but the color swatch is not. It only affects the creation of the component so it isn't a huge problem, but from a UX stand-point, it is a bit problematic for the default color to always be black. |
+1, didn't see it. This is a duplicate of #35 of course. |
Needed this as well but can't wait for an answer, so I wrote my own. $(this).next('div.input-group-btn').find('.color-preview.current-color').css('background-color', '#' + color); |
I also did @Geczy's method, but I need a way to update the color on the advanced tab. |
+1 - I would also need this feature! |
@Jaza thanks for the fix, but I won't have time to check it :) |
Seems as though there is a chain of open pull requests that reference this issue, and due to the extreme age of the issue I'm going to close it out. |
I'm trying to implement this project into my code, and so far it's working great.
My only real issue at this time is how I can specify a value for the input via javascript and have the color-picker update in turn.
Basically, I have the value that it should represent stored in a database, and the input is set to the value in the database using a javascript call. This works fine, but I can't get the preview to update to the new specified color when the update is made.
The text was updated successfully, but these errors were encountered: