eisenbraun / columns

A jQuery plugin that converts JSON data into searchable, sortable, HTML tables
http://eisenbraun.github.io/columns
MIT License
104 stars 47 forks source link

function addition: show rows at size (filling blank rows) #8

Open Chiether opened 9 years ago

Chiether commented 9 years ago

Requesting by http://ja.stackoverflow.com/questions/7701 Summary: "every show rows at size"

Chiether commented 9 years ago

It's used for...

$('#example1').columns({
    data: [
        {'Emp. Number': 00001, 'First Name':'John', 'Last Name':'Smith' },
        {'Emp. Number': 00002, 'First Name':'Jane', 'Last Name':'Doe' },
        {'Emp. Number': 00003, 'First Name':'Ted', 'Last Name':'Johnson' },
    ],
    blank: {'Emp. Number': '', 'First Name': '------', 'Last Name':'------'},
    size: 2,
});

page1:
  00001 John   Smith
  00002 Jane   Doe
page2:
  00003 Ted    Johnson
        ------ ------