what's the role of 'meta' in a page? #1394
Unanswered
zillionare
asked this question in
Q&A
Replies: 1 comment
-
The layout in the You can learn more about layouts here: https://wave.h2o.ai/docs/layout/ |
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
-
Have seen this code snippets around a lot:
`@app('/demo')
async def serve(q: Q):
q.page['meta'] = ui.meta_card(box='', layouts=[ui.layout(breakpoint='xs', zones=[
ui.zone(name='main', size='100vh', zones=[
ui.zone(name='header', size='80px'),
ui.zone(name='body', size='1'),
ui.zone(name='footer', size='60px'),
]),
])])
`
Checking meta_card's doc, it says "This card is invisible. It is used to control attributes of the active page."
I understand we may need this card to keep 'meta' info for the page, like title, icon or even theme. However, why we need define layout for this card since it's invisible? How this card will interact with user and other parts of the site/page?
Beta Was this translation helpful? Give feedback.
All reactions