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

Table: přidáno CellMarkup

parent b1e1a0ac
No related branches found
No related tags found
No related merge requests found
...@@ -85,6 +85,20 @@ class CellCheckbox(Cell): ...@@ -85,6 +85,20 @@ class CellCheckbox(Cell):
ch += ' checked' ch += ' checked'
return ch + '>' 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: class Table:
columns: Sequence[Column] columns: Sequence[Column]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment