Web design and development in Salisbury and Portsmouth » Josh http://www.joshbuckley.co.uk Josh Buckley Thu, 11 Oct 2012 21:17:11 +0000 en-US hourly 1 http://wordpress.org/?v=434 Knockout.js DataTable bindings http://www.joshbuckley.co.uk/2011/07/knockout-js-datatable-bindings/ http://www.joshbuckley.co.uk/2011/07/knockout-js-datatable-bindings/#comments Sat, 30 Jul 2011 16:09:01 +0000 Josh http://www.joshbuckley.co.uk/?p=718 I’ve recently started using knockout.js, which is an implementation of Model-View-ViewModel (MVVM) for Javascript. Well, it covers the View-ViewModel part because the actual data model is on the server.

Along with Knockout, I’ve been using jQuery UI – which I’ve been using for years anyway.

Today, I needed a table widget. There isn’t currently one available in jQuery UI, though one is being developed, so I searched for an alternative. I came across DataTables (well, I’d actually used it before) – but there wasn’t a Knockout binding available. So I developed one, and I’m making it available under the MIT licence.

Demos

Everyone loves demos, so here are a few.

  1. Basic usage (no options): http://jsfiddle.net/vB3Aj/
  2. With options (and jQuery UI theming): http://jsfiddle.net/tdppH/1/

Usage

I’ve set up the demos on jsfiddle to use as little code as possible, so you’ll probably be able to work it out from those.

Any questions though, post in the comments.

Download

Download Knockout.js DataTables binding

]]>
http://www.joshbuckley.co.uk/2011/07/knockout-js-datatable-bindings/feed/ 10
Finally launched my portfolio site http://www.joshbuckley.co.uk/2011/07/finally-launched-my-portfolio-site/ http://www.joshbuckley.co.uk/2011/07/finally-launched-my-portfolio-site/#comments Sun, 17 Jul 2011 15:27:36 +0000 Josh http://www.joshbuckley.co.uk/?p=710 I’ve been meaning to put a portfolio site together for some time now – and here it is. Its pretty empty at the moment because a lot of the work I do is for other web companies, rather than my own clients, so I don’t get to show off some of the cool stuff I’ve worked on.

Not really sure what else to say in this post. I wanted to have a blog so I could write about new projects, and general web-related things, maybe a bit of techy stuff too. Hopefully I’ll get time to do that!

]]>
http://www.joshbuckley.co.uk/2011/07/finally-launched-my-portfolio-site/feed/ 0
Slide: The Party Decker http://www.joshbuckley.co.uk/2011/07/slide-the-party-decke/ http://www.joshbuckley.co.uk/2011/07/slide-the-party-decke/#comments Mon, 11 Jul 2011 20:07:16 +0000 Josh http://www.joshbuckley.co.uk/?p=412 http://www.joshbuckley.co.uk/2011/07/slide-the-party-decke/feed/ 0 Slide: Student Perks http://www.joshbuckley.co.uk/2011/07/slide-student-perks/ http://www.joshbuckley.co.uk/2011/07/slide-student-perks/#comments Mon, 11 Jul 2011 18:37:44 +0000 Josh http://www.joshbuckley.co.uk/?p=1 http://www.joshbuckley.co.uk/2011/07/slide-student-perks/feed/ 0