Skip to content

Commit 4f2c499

Browse files
delsimGibbsConsulting
authored andcommitted
Extend bootstrap example to show switch and checkbox variants (#218)
* Extend bootstrap example to show switch and checkbox variants * Fix settings to match test suite * Bump version number:
1 parent 0873d90 commit 4f2c499

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

demo/demo/bootstrap_app.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,15 @@
2929
from django_plotly_dash import DjangoDash
3030

3131
dd = DjangoDash("BootstrapApplication",
32+
serve_locally=True,
3233
add_bootstrap_links=True)
3334

3435
dd.layout = html.Div(
3536
[
3637
dbc.Alert("This is an alert", color="primary"),
3738
dbc.Alert("Danger", color="danger"),
39+
dbc.Checklist(id='check_switch', switch=True, options=[{"label": "An example switch", "value": 1}], value=[0]),
40+
dbc.Checklist(id='check_check', switch=False, options=[{"label": "An example checkbox", "value": 1}], value=[0]),
3841
]
3942
)
4043

0 commit comments

Comments
 (0)