ATLAS Offline Software
|
Public Member Functions | |
def | __init__ (self, tableAttr='', defaultCellAttr=[], useTableSorter=False, escapeText=False) |
def | __str__ (self) |
def | appendRow (self, cellData, rowAttr='') |
def | getHtml (self) |
Public Attributes | |
tableAttr | |
defaultCellAttr | |
useTableSorter | |
escapeText | |
rows | |
Make a table. Table row data is accumulated internally in a list. The table can be made sortable (using jQuery's plugin Tablesorter) by setting useTableSorter to True. Special HTML characters in cell data are properly replaced (using escape from cgi) if escapeText is set True.
Definition at line 91 of file WebPage.py.
def WebPage.htmlTable.__init__ | ( | self, | |
tableAttr = '' , |
|||
defaultCellAttr = [] , |
|||
useTableSorter = False , |
|||
escapeText = False |
|||
) |
Definition at line 98 of file WebPage.py.
def WebPage.htmlTable.__str__ | ( | self | ) |
Definition at line 105 of file WebPage.py.
def WebPage.htmlTable.appendRow | ( | self, | |
cellData, | |||
rowAttr = '' |
|||
) |
Append a row to the table. cellData is a list of the contents of the cells in the row. The data for each cell is either a string with the contents of the cell, or a tuple where the first element is the contents of the cell and the second element contains any HTML tags. Special HTML characters are properly replaced (using escape from cgi) if escapeText was set True when creating the table. If the table uses Tablesorter, <th> is used instead of <td> in the first row.
Definition at line 108 of file WebPage.py.
def WebPage.htmlTable.getHtml | ( | self | ) |
WebPage.htmlTable.defaultCellAttr |
Definition at line 100 of file WebPage.py.
WebPage.htmlTable.escapeText |
Definition at line 102 of file WebPage.py.
WebPage.htmlTable.rows |
Definition at line 103 of file WebPage.py.
WebPage.htmlTable.tableAttr |
Definition at line 99 of file WebPage.py.
WebPage.htmlTable.useTableSorter |
Definition at line 101 of file WebPage.py.