Knockout.js Widget Binding

Posted by Matthew on February 27, 2013

Over the past few months I have been working a lot of JavaScript and with that comes it’s fair share of “new hotness” frameworks. One that I always use though is knockout.js. For those that don’t know knockout is basically a MVVM framework for JavaScript and well it’s pure magic made from unicorns! Anyway one of the most common things that I have been doing is using knockout templates and creating jQuery UI widgets. For instance I want to add another item to a grid and wire up a bootstrap tooltip widget. I can do this after binding takes place and every time binding is updated, or I can create a custom knockout binding. So here it is, one of a growing number of helpers that I will be sharing over the next few weeks.