浏览代码

more explenation in example

Rodja Trappe 2 年之前
父节点
当前提交
f417d7a64b
共有 1 个文件被更改,包括 2 次插入0 次删除
  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)