diff --git a/py/examples/frame.py b/py/examples/frame.py new file mode 100644 index 0000000000..c05fe280eb --- /dev/null +++ b/py/examples/frame.py @@ -0,0 +1,23 @@ +# Frame +# Use a frame card to display HTML content. +# --- +from h2o_q import site, ui + +html = ''' + + + +

Hello World!

+ + +''' + +page = site['/demo'] + +page['example'] = ui.frame_card( + box='1 1 2 2', + title='Example', + content=html, +) + +page.save() diff --git a/py/examples/frame_path.py b/py/examples/frame_path.py new file mode 100644 index 0000000000..9543646d82 --- /dev/null +++ b/py/examples/frame_path.py @@ -0,0 +1,14 @@ +# Frame / Path +# Use a frame card to display external web pages. +# --- +from h2o_q import site, ui + +page = site['/demo'] + +page['example'] = ui.frame_card( + box='1 1 6 5', + title='Example', + path='https://example.com', +) + +page.save() diff --git a/py/examples/tour.conf b/py/examples/tour.conf index dbc40fa586..9c719f08b2 100644 --- a/py/examples/tour.conf +++ b/py/examples/tour.conf @@ -42,6 +42,8 @@ separator.py file_upload.py form_frame.py form_frame_path.py +frame.py +frame_path.py list.py grid.py flex.py