소스 검색

add back markdown.set_content

Falko Schindler 2 년 전
부모
커밋
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