HtmlTable
This just automates creating tables for tabular data.
var myTable = new HtmlTable({ properties: { border: 1, cellspacing: 3 }, rows: [ ['apple', 'red'], ['lemon', 'yellow'] ] }); myTable.table.inject($('exampleHtmlTable')); myTable.push(['lime', 'green']); myTable.push(['grape', 'purple']);

You can also pass in a more sophisticated row element:
var myTable = new HtmlTable({ properties: { border: 1, cellspacing: 3 }, rows: [ [{content: 'fruits', properties: {colspan: 2, 'class': "someCssClass", style: "border: 1px solid blue"}}], ['apple', 'red'], ['lemon', 'yellow'] ] }); myTable.table.inject($('exampleHtmlTable2'));

cnet-libraries/08-layout/00-htmltable.txt · Last modified: 2008/11/17 23:25