Răsfoiți Sursa

more explenation in example

Rodja Trappe 2 ani în urmă
părinte
comite
f417d7a64b
1 a modificat fișierele cu 2 adăugiri și 0 ștergeri
  1. 2 0
      examples/customisation/custom.py

+ 2 - 0
examples/customisation/custom.py

@@ -13,10 +13,12 @@ class page(ui.page):
     async def header(self) -> None:
         await super().header()
         navbar(**self.kwargs)
+        # start using a ui row to let all content between header and footer be centered
         self.content = ui.row().classes('justify-center fit mt-10').__enter__()
 
     async def footer(self) -> None:
         await super().footer()
+        # closing the row which was opened in header
         self.content.__exit__(None, None, None)