Introduction¶
HTML Table Library is a library for generating HTML tables, with rich rendering options, filters,
callbacks, custom HTML injection, various options for optimization, and more.
Overview¶
This section starts with an overview of the library, and an introduction of the main concepts behind it.
Then, some straightforward code examples to let you get a quick idea of typical usage.
API Guide¶
This section outlines the class API.
Firstly, creating a table and adding data to it:
Secondly, using built-in methods to affect basic table structure and presentation:
Thirdly, using custom methods to transform the data into alternative content:
Finally, rendering the table:
Techniques¶
This section shows you how to use the library to a more advanced level.
Demos¶
This section provides working demos so you can see what the library actually does first-hand.
Basic Usage
- Your first table
- Displaying database results in a table
- Automatic row and column titling
- Column filtering / ordering
- Column widths and styles
- Transposing table data
Changing table content using callbacks
- Changing cell content using 'body' callbacks
- Changing row titles using 'row title' callbacks
- Changing specific columns using 'column' callbacks
- Injecting row headers using 'row' callbacks
Table data
- Working with user data
- Generating matrix content
- Adding data in separate passes
Advanced content and formatting
- Making content editable by adding HTML form elements
- Returning custom HTML Element classes to affect element rendering
- Zebra striping
Extending the class
- A basic extended class
- An advanced extended class