فهرست منبع

added some documentation for ui.add_body/head_html

Rodja Trappe 2 سال پیش
والد
کامیت
0cbda33648
1فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  1. 2 0
      nicegui/elements/html.py

+ 2 - 0
nicegui/elements/html.py

@@ -11,6 +11,8 @@ class Html(Element):
         """HTML Element
 
         Renders arbitrary HTML onto the page. `Tailwind <https://tailwindcss.com/>`_ can be used for styling.
+        You can also use `ui.add_head_html` to add html code into the head of the document and `ui.add_body_html`
+        to add it into the body.
 
         :param content: the HTML code to be displayed
         """