This JavaScript coding example demonstrates control the contruction of an HTML table.
The project was split up for teaching purposes.
The actions are:
- using week 1 to parse a csv file
- read a control file to determine the table format
- turn columns on / off
- add icons and checkboxes to each cell
- style for each column
- set column width
|
The source code is divided into four sections:
tableTest.js | The
program to test the table construction
|
tableControl .js |
This object formats the table and call events using a control file
|
Events
onStart
onFinish
onBeforeEachRow
onAfterEachRow
onBeforeFirstRow
onAfterLastRow
onTableFormat
onRowFormat
onHeaderFormat
onColumnEdit
onColumnFormat
|
return HTML text that is added before the table
return HTML text that is added after the table
return HTML text that is added before the table
return HTML text that is added after the table
inject HTML text before each <TR> tag
inject HTML text before the first <TR> tag
inject HTML text after the last last </TR> tag
inject HTML text into the <TABLE> Tab
inject HTML text into the table header <TR> tag
permit column value edits before use
format the value of the column |