File size: 365 Bytes
2b4d75c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# 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()
|