Browse Source

add back markdown.set_content

Falko Schindler 2 năm trước cách đây
mục cha
commit
682fd6c63a
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  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