-
Hi This is the code of my app sample_markdown = ''' Esta aplicação serve de apoio á análise dados''' example_dir = os.path.dirname(os.path.realpath(file)) async def showpage(q: Q):
@app('/Dataknowledge')
print('----------------------------------------') |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
Instead of replacing the zone, replace the cards in the zone. In your case, you can q.page['some_other_content`] = ui.markdown_card(
box=ui.boxes('content', 'sidebar', 'sidebar'),
title='',
content=some_other_markdown,
) The idea is to keep the zones (the layout of the page) fixed, and add/remove cards to the various zones. |
Beta Was this translation helpful? Give feedback.
Instead of replacing the zone, replace the cards in the zone.
In your case, you can
del q.page['Home']
and then do:The idea is to keep the zones (the layout of the page) fixed, and add/remove cards to the various zones.