Skip to main content

Meta / Icon

Set the browser window icon for a page.

from h2o_wave import site, ui

page = site['/demo']

page['meta'] = ui.meta_card(box='', icon='')

# You can also upload and assign an icon, like this:
# icon_path, = site.upload(['path/to/my/icon.png'])
# page['meta'] = ui.meta_card(box='', icon=icon_path)

page['example'] = ui.markdown_card(
box='1 1 2 2',
content='<a href="demo" target="_blank">Open this page in a new window</a> to view its icon.',

Tags:  iconmeta