File size: 457 Bytes
2b4d75c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Canvas
# A card that displays a freeform drawing canvas.
# A canvas card can synchronize its state with other canvas cards at the same URL.
# Open `/demo` in multiple browsers and watch them synchronize in realtime.
# #collaboration
# ---
from h2o_wave import site, data, ui

page = site['/demo']
page.drop()

page.add('example', ui.canvas_card(
    box='1 1 4 7',
    title='Sample Canvas',
    width=500,
    height=500,
    data=dict(),
))
page.save()