-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Responsive template using Bootstrap (#201)
* Add a plotly_app_bootstrap template that uses Bootstrap4 to make the iframe containing the app responsive.
- Loading branch information
1 parent
dbe423e
commit e299dc6
Showing
6 changed files
with
74 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
django_plotly_dash/templates/django_plotly_dash/plotly_app.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<div style="{{dstyle}}"> | ||
<iframe src="{{app.base_url}}" style="{{istyle}}"frameborder="{{fbs}}"></iframe> | ||
<iframe src="{{app.base_url}}" style="{{istyle}}" frameborder="{{fbs}}"></iframe> | ||
</div> |
3 changes: 3 additions & 0 deletions
3
django_plotly_dash/templates/django_plotly_dash/plotly_app_bootstrap.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<div class="embed-responsive embed-responsive-{{aspect}}"> | ||
<iframe src="{{app.base_url}}" class="embed-responsive-item"></iframe> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters