Explorar o código

more explenation in example

Rodja Trappe %!s(int64=2) %!d(string=hai) anos
pai
achega
f417d7a64b
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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)