GitXplorerGitXplorer
m

tablerender-rails

public
1 stars
0 forks
1 issues

Commits

List of commits on branch master.
Unverified
1ca393b04746ca16d709570d7263939bb5045d21

fix: fire events on clear filters and searches

ffatshotty committed 10 years ago
Unverified
d4d3cfb00fba766ece080724204a1c34a7de842e

fix: set original data incase of single sort

ffatshotty committed 11 years ago
Unverified
4f536838e197a36b4fb2bd1e834412294cbb277d

fix: sort wants a boolean value as return value

ffatshotty committed 11 years ago
Unverified
0c4b7740e1379b6dac8e5e049a53bc6112101cea

queried view is stronger than searched data

ffatshotty committed 11 years ago
Unverified
facee55d3505c46952c567d2e850c3dd64217e14

fix: use indexes correctly for getting data

ffatshotty committed 11 years ago
Unverified
57d18ce05d92695fe2f7e1ba9b1e6e57794ef849

little fix for sintax error

ffatshotty committed 11 years ago

README

The README file for this repository.

TableRender is a jQuery based plugin.

How can I render a table with too much data?

TableRender is a jQuery-based plugin that parses and creates more than 100.000 table rows just in time.

Given a JSON object, TableRender parses, renders, filters and sorts all data.

Methods:

  • addRow, addRows
  • removeRow, removeRows
  • replaceRow, replaceRows
  • search
  • filter
  • sort

Supported browsers:

  • Internet Explorer 6 (not tested)
  • Internet Explorer 7
  • Internet Explorer 8
  • Internet Explorer 9
  • Firefox
  • Google Chrome
  • Safari
  • Opera

Requirements:

  • jQuery 1.4.2 or later
  • IntroSort script (used while sorting)

Example

$('#example').table({
  columns: [
    {
      key: 'title',
      label: 'Title'
    },{
      key: 'name',
      label: 'Name'
    },{
      key: 'surname',
      label: 'Surname'
    }
  ],
  rowHeight: 20,
  headHeight: 20,
  borderHeight: 0,
  sortable: false,
  selection: true,
  multiselection: true,
  canBeSorted: function(column){
    return column != 3
  }
});

var jsonData = [];
for ( var i=0; i < 100000; i++ ) {
  jsonData.push({
    title: 'Title ' + i,
    name: 'Name ' + i,
    surname: 'Surname ' + i
  });
}

$('#example').table().data( jsonData );