Skip to content

How to quickly create custom containers? #309

Closed Answered by rodja
smojef asked this question in Q&A
Discussion options

You must be logged in to vote

Yes. We do it the same way in our modularization example:

@contextmanager
def frame(navtitle: str):
'''Custom page frame to share the same styling and behavior across all pages'''
ui.colors(primary='#6E93D6', secondary='#53B689', accent='#111B1E', positive='#53B689')
with ui.header().classes('justify-between text-white'):
ui.label('Modularization Demo').classes('font-bold')
ui.label(navtitle)
with ui.row():
menu()
with ui.row().classes('absolute-center'):
yield

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@smojef
Comment options

Answer selected by smojef
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants