Skip to content
Snippets Groups Projects
Commit 9be56c17 authored by Jiří Kalvoda's avatar Jiří Kalvoda
Browse files

Table: přidáno CellMarkup

parent 7dd20e30
No related branches found
No related tags found
1 merge request!82Označení neaktivovaných účtů -- vytvoření user_html_flags
......@@ -85,6 +85,20 @@ class CellCheckbox(Cell):
ch += ' checked'
return ch + '>'
class CellMarkup(Cell):
text: str
html: str
def __init__(self, text: str, html: Union[str, Markup]):
self.text = text
self.html = str(html)
def __str__(self) -> str:
return self.text
def to_html(self) -> str:
return self.html
class Table:
columns: Sequence[Column]
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment