Isotope & Knockout.js Mashup

I’ve been prettty busy learning some new tech recently so I’ve been too busy to write for a while. Today, I’ve been working on something internally for my employer, and found the need to combine Knockout.js with Isotope.js – However this was not as straight forward as I had originally thought as Isotope doesn’t re-evaluate it’s items, and doesn’t re-evaluate it’s size either.

So I came up with the following Custom Knockout Binding, which makes applying Isotope with Bindings on many elements a breeze. I hope this helps someone else who needs it!

jsFiddle: http://jsfiddle.net/uk6yt/6/

Advertisements

One thought on “Isotope & Knockout.js Mashup

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s