1
0
Rodja Trappe 2 жил өмнө
parent
commit
b94482d23a

+ 1 - 1
nicegui/elements/chat_message.py

@@ -18,7 +18,7 @@ class ChatMessage(Element):
                  ) -> None:
         """Chat Message
 
-        Based on Quasar's `Chat Message <https://quasar.dev/vue-components/chat/`_ component.
+        Based on Quasar's `Chat Message <https://quasar.dev/vue-components/chat/>`_ component.
 
         :param text: the message body
         :param name: the name of the message author

+ 1 - 0
website/documentation.py

@@ -79,6 +79,7 @@ def create_full() -> None:
     load_demo(ui.date)
     load_demo(ui.time)
     load_demo(ui.upload)
+    load_demo(ui.chat_message)
     load_demo(ui.element)
 
     heading('Markdown and HTML')

+ 9 - 0
website/more_documentation/chat_message_documentation.py

@@ -0,0 +1,9 @@
+from nicegui import ui
+
+
+def main_demo() -> None:
+    name = 'Me'
+    ui.chat_message(
+        'Hello NiceGUI!', name=name, stamp='now',
+        avatar=f'https://robohash.org/{name}?bgset=bg2'
+    )