We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01c25e4 commit c290b43Copy full SHA for c290b43
django_plotly_dash/dash_wrapper.py
@@ -1,4 +1,5 @@
1
-'''dash_wrapper
+'''
2
+dash_wrapper
3
4
This module provides a DjangoDash class that can be used to
5
expose a Plotly Dasb application through a Django server
@@ -420,4 +421,7 @@ def extra_html_properties(self):
420
421
The content returned from this function is injected unescaped into templates.
422
'''
423
- return 'class="django-plotly-dash django-plotly-dash-iframe"'
424
+ pre_slugified_id = self._uid
425
+ slugified_id = slugify(pre_slugified_id)
426
+
427
+ return 'class="django-plotly-dash django-plotly-dash-iframe django-plotly-dash-app-%s"' % slugified_id
0 commit comments