splitter_documentation.py 306 B

123456789
  1. from nicegui import ui
  2. def main_demo() -> None:
  3. with ui.splitter() as splitter:
  4. with splitter.add_slot('before'):
  5. ui.label('This is some content on the left hand side.')
  6. with splitter.add_slot('after'):
  7. ui.label('This is some content on the right hand side.')