How to use
You create the table by use of plain HTML as shown in the textaera code for <BODY>. What's important is that you:
- Have a parent div like this: <div class="widget_tableDiv">
- Use a <THEAD> tag as parent of your header row.
- Use <TD> and not <TH> as tags for your header content
- Use a <TBODY> as parent of your table data rows(<TR>).
Look in the example for further help.
<script type="text/javascript">
initTableWidget('myTable',500,250,Array('S','N',false,'N','S'));
</script>
- 'myTable' = The ID of your table. example: <TABLE id="myTable" ...
- 500 = Width of table widget
- 250 = Height of table widget
- Array('S','N','S','N','S') = An array telling how the columns should be sorted. "S" = String, "N" = Numeric.
Use false(without quotes) instead of "S" and "N" if you have columns that shouldn't be sorted at all.
