Browse Source

add back markdown.set_content

Falko Schindler 2 years ago
parent
commit
682fd6c63a
1 changed files with 3 additions and 0 deletions
  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