Explorar o código

add back markdown.set_content

Falko Schindler %!s(int64=2) %!d(string=hai) anos
pai
achega
682fd6c63a
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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