Please see my code here:
http://jsfiddle.net/RzfHu/2/
I would like this custom widget do like this:
So how do I add binding to this custom widget "colorpicker"?
http://jsfiddle.net/RzfHu/2/
I would like this custom widget do like this:
<input type="text" data-role="colorpicker" data-bind="value:BGColor" />
But it failed saying: Uncaught TypeError: Object [object Object] has no method 'value'
So how do I add binding to this custom widget "colorpicker"?