Skip to content

Commit 71a1544

Browse files
just wrapped the add new graph in a ddgl
1 parent 3e4e80f commit 71a1544

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/dash_dynamic_grid_layout/intro.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@
2424
))
2525
],
2626
allowAddItem=True,
27-
newItemTemplate=dcc.Graph(
27+
newItemTemplate=dgl.DraggableWrapper(dcc.Graph(
2828
figure=px.scatter(df, x="petal_width", y="petal_length", color="species"),
2929
style={'height': '100%'}
30-
),
30+
)),
3131
rowHeight=150,
3232
cols={'lg': 12, 'md': 10, 'sm': 6, 'xs': 4, 'xxs': 2},
3333
style={'height': '800px'},

0 commit comments

Comments
 (0)