__init__(self,
columns_format,
table_data=None)
(Constructor)
| source code
|
- Parameters:
table_data - a list of {key:value} dicts (one dict per row,
one key per column)
columns_format - a list of (key, title, attributes, formatter) tuples, one for
each column in table_data , where:
-
attributes is a
{attr:value} dict which
describes HTML attributes of the corresponding table cell
-
formatter is a function returning a string to display the
value in the cell; you will probably have to define a real
function instead of using lambda.
|