Grid widget on a JSON diet



www.checkandshareCatWalk’s grids are dynamically build using MochiKit terrific Stan syntax.
They accept a data structure (JSON) and return a grid element you can add to your page or manipulate further using the DOM.

This is just javascript, no server side magic. You can use it with or without CatWalk.
Though TurboGears json output (tg_format=json) makes it really easy to populate this dingy.

There is a sample page here that shows different structures and the resulting grids.

5 Responses to “Grid widget on a JSON diet”

  1. Michele Says:

    You simply rock! :-)

  2. koorb Says:

    Looks fantastic but some of the examples don’t seem to function right for me?
    The column sorting and the menu that pops up to select which columns to display don’t work right. In safari the menu conflicts between the last two examples and in firefox (os x) the menu appear too far over to the left to use

  3. Administrator Says:

    ‘menu conflicts between the last two examples’ - He, the joys of copy and paste, should be ok now. I can’t replicate the display issues on firefox/safari =(

  4. koorb Says:

    Looks like it’s all fixed now probably a symptom of the copy/paste problem. Looks really really good!

  5. william Says:

    The “active column selection” is not working on my Firefox 1.0.7 neither on Konqueror 3.4.0.

    On Firefox I see a box with fields name, but cannot go on it… the box desapear once the mouse move.

    On Konqueror, I don’t see the box. Just the small icon ;-(.

    Thanks for those very good samples. Actually, I’ve saw such examples, but I don’t remeber where ;-(.