-
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.
Add handling of multiple return values from callbacks (#194)
* Outline of demo-ten for multiple callback example * Set up both types of example app prior to enabling multiple return values * Add handling of multiple output values * Extend test suite to cover multiple callbacks * Handle special case of single member of outputs array
- Loading branch information
1 parent
c9a0242
commit e9cd4ef
Showing
8 changed files
with
209 additions
and
13 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
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,33 @@ | ||
{%extends "base.html"%} | ||
{%load plotly_dash%} | ||
|
||
{%block title%}Demo Ten - Multiple Callback Values{%endblock%} | ||
|
||
{%block content%} | ||
<h1>Multiple Callback Values</h1> | ||
<p> | ||
Both standard and extended callbacks can return multiple responses. This example instantiates | ||
two example applications that use multiple return values for both types of callback. | ||
</p> | ||
<div class="card bg-light border-dark"> | ||
<div class="card-body"> | ||
<p><span>{</span>% load plotly_dash %}</p> | ||
<p><span>{</span>% plotly_app slug="multiple-callback-values" ratio=0.2 %}</p> | ||
<p><span>{</span>% plotly_app slug="multiple-callback-values-expanded" ratio=0.2 %}</p> | ||
</div> | ||
</div> | ||
<p> | ||
</p> | ||
<div class="card border-dark"> | ||
<div class="card-body"> | ||
{%plotly_app slug="multiple-callback-values-1" ratio=0.2 %} | ||
</div> | ||
</div> | ||
<p></p> | ||
<div class="card border-dark"> | ||
<div class="card-body"> | ||
{%plotly_app slug="multiple-callback-values-expanded" ratio=0.2 %} | ||
</div> | ||
</div> | ||
<p></p> | ||
{%endblock%} |
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
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
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