[Question] Hook into color update?
Closed this issue · 4 comments
thednp commented
I was searching your doc and cound't find any clue, basically what I'm after is similar to
init: function(elem,colors){
//do some stuff
}
Yes, there is this
actionCallback: function(e,action) {}
But I don't know what are those function attributes for.
So yes, I would need to do some stuff on update.
Thanks so much.
thednp commented
I managed to make it work via renderCallback
.
thednp commented
Hey there.
We need a way to have access to element in all callback functions. Can you please point out or make some improvements on this?
Thank you
thednp commented
I found that to get the element in the callback functions you can simply do
var myInput = this.input; //where this is the entire colorPicker object
But I think this should be documented.