Skip to content
Snippets Groups Projects
Commit da7b66af authored by Jiří Setnička's avatar Jiří Setnička
Browse files

Table: Zavedení speciálního klíče _html_tr nahrazujícího <tr> element

Užitečné k nastavení class nebo title.
parent 3689f3b9
No related branches found
No related tags found
1 merge request!16Zadávání bodů a zobrazení výsledků
...@@ -94,6 +94,9 @@ class Table: ...@@ -94,6 +94,9 @@ class Table:
tab.append('<tbody>') tab.append('<tbody>')
for r in self.rows: for r in self.rows:
if r.get('_html_tr'):
tab.append(r.get('_html_tr'))
else:
tab.append('<tr>') tab.append('<tr>')
for c in self.columns: for c in self.columns:
val = r.get(c.key) val = r.get(c.key)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment