Skip to content

ameyms/tabulate

Repository files navigation

Tabulate Build Status

A jquery plugin for working with paginated tables with emphasis on Bootstrap

Final API Goal:

$('#mytable').tabulate({
    
    // Function that returns a jquery deferred
    source: xhrSource,
    
    //A Function that accepts row, column and item and returns tds content as html
    renderer: renderer,

    // String or Function that accepts row, column and item and returns class string
    cellClass: foo, 

    // String or Function that accepts row, column and item 
    // and returns an object that is set as $.data() for the td
    cellMeta: bar,

    pagination: $('#mypagination') //Bootstrap 'pagination' control

});

NOTE: Column resize has not yet been implemented

License

This library is available under the MIT license