-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlinks.py
19 lines (17 loc) · 937 Bytes
/
links.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
from h2o_wave import site, ui
page = site['/demo']
page['example'] = ui.form_card(
box='1 1 4 10',
items=[
ui.link(label='Internal link', path='/starred'),
ui.link(label='Internal link, new tab', path='/starred', target=''),
ui.link(label='Internal link, new tab', path='/starred', target='_blank'), # same as target=''
ui.link(label='Internal link, disabled', path='/starred', disabled=True),
ui.link(label='External link', path='https://h2o.ai'),
ui.link(label='External link, new tab', path='https://h2o.ai', target=''),
ui.link(label='External link, new tab', path='https://h2o.ai', target='_blank'), # same as target=''
ui.link(label='External link, disabled', path='https://h2o.ai', disabled=True),
ui.link(label='Download link', path='https://file-examples-com.github.io/uploads/2017/02/file-sample_100kB.doc', download=True),
]
)
page.save()