Falko Schindler 2 лет назад
Родитель
Сommit
682fd6c63a
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      nicegui/elements/markdown.py

+ 3 - 0
nicegui/elements/markdown.py

@@ -53,3 +53,6 @@ class Markdown(Element, BindContentMixin):
 
         self.content = content
         _handle_content_change(self, content)
+
+    def set_content(self, content: str) -> None:
+        self.content = content