Table

report_table TPTReport.Table()

This function generates a custom table in the report. You can set a maximum of 6 headers. Use the table cells to display content. The cell can show various contents, from signal names, values, etc.

Returns:

the new table that can be added to the report.

Examples:

   tab = TPTReport.Table();
   tab.setCaption("Table's caption");
   # max 6 headers
   tab.setHeader("1rst header", "2nd header", "3rd header")
   # same number of arguments to setHeader recommended
   tab.addRow("row content 1", "row content 2", "row content 3");
   TPTReport.add(tab);
   
   # table with signal names and values:
   tab2 = TPTReport.Table();
   tab2.setCaption("Table caption");
   tab2.setHeader("Signal name", "Signal value");
   tab2.addRow(accel.getName(), str(accel.getLeftValue()));
   TPTReport.add(tab2);