wave-tour / examples /form_frame.py
MartinT's picture
feat: Init.
2b4d75c
raw
history blame
No virus
365 Bytes
# Form / Frame
# Use a #frame component in a #form card to display #HTML content inline.
# ---
from h2o_wave import site, ui
html = '''
<!DOCTYPE html>
<html>
<body>
<h1>Hello World!</h1>
</body>
</html>
'''
page = site['/demo']
page['example'] = ui.form_card(
box='1 1 2 2',
items=[
ui.frame(content=html, height='100px')
]
)
page.save()