Can't define card in 'father' zones #1914
Unanswered
Guanzong-Wu
asked this question in
Q&A
Replies: 1 comment
-
Hey @Kiwi-Rionald, this is by design. You can do something like this: q.page['meta'] = ui.meta_card(box='', layouts=[
ui.layout(
breakpoint='xl'.
width='1200px'.
zones=[
ui.zones('header').
ui.zone('body', direction=ui.ZoneDirection.ROW, zones=[
ui.zone('content', size='75%').
ui.zones('sidebar', size='25%').
]).
ui.zone('body2', direction=ui.ZoneDirection.ROW]).
ui.zone('footer').
]
)
])
q.page['card'] = ui.markdown_card(
box=ui.box('body2').
title='TITLE'.
content='CONTENT'
) Empty horizontal zones are ignored. I also suggest checking out |
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
-
Hi, I have found some problems in organising the zones (I don't know if it's by design or if I'm using them in the wrong way):
I found that if I define a child zone in the father zone, then I can only use the bottom child zone when I specify the box for the card, i.e. I cannot define the card in the position of the father zone.
Here is an example from the Guide:
If I define the following
meta_card
If I then define a
The
markdown card
will not be visible after running the app, but will be displayed correctly if thezone
is changed to the bottom child zone (e.g.sidebar
orheader
).I'm wondering if this is a deliberate design or if I haven't studied it as thoroughly as I should. r Is it possible to add this feature if it isn't there? Because I feel that this would be useful when designing more complex interfaces. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions