Browse Source

improve description of @ui.page decorator

Rodja Trappe 1 year ago
parent
commit
5113536ee0
1 changed files with 2 additions and 2 deletions
  1. 2 2
      nicegui/page.py

+ 2 - 2
nicegui/page.py

@@ -29,8 +29,8 @@ class page:
                  ) -> None:
         """Page
 
-        Creates a new page at the given route.
-        Each user will see a new instance of the page.
+        This decorator marks a function to be a page-builder.
+        Each user accessing the given route will see a new instance of the page.
         This means it is private to the user and not shared with others 
         (as it is done `when placing elements outside of a page decorator <https://nicegui.io/documentation#auto-index_page>`_).