Possible to have multiple lines/splitters to seperate things on a single line? #3352
-
QuestionRight now I have the following code with ui.splitter() as splitter:
with splitter.before:
for key, label in list(checkbox_options.items())[:4]:
checkbox_values[key] = ui.checkbox(label).classes("w-full")
with splitter.after:
for key, label in list(checkbox_options.items())[4:]:
checkbox_values[key] = ui.checkbox(label).classes("w-full") but I want to know if it's possible to make it so there is more than just before and after or if there is a different tool I can use to achieve this. Thank you. |
Beta Was this translation helpful? Give feedback.
Answered by
python-and-novella
Jul 15, 2024
Replies: 2 comments 3 replies
-
splitter is container, separator is simple control. from nicegui import ui
with ui.row():
for i in range(9):
with ui.column():
for k in range(i+1):
ui.label(str(k))
ui.separator().props('vertical')
else:
with ui.column():
for k in range(i+1+1):
ui.label(str(k))
ui.run() |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
KingKDot
-
The current implementation of |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
splitter is container, separator is simple control.