You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* The `DashApp` struct represent dashboard application.
37
35
* To make `DashApp` struct use `dash(layout_maker::Function, name::String; external_stylesheets::Vector{String} = Vector{String}(), url_base_pathname="/", assets_folder::String = "assets")`` where `layout_maker` is a function with signature ()::Component
@@ -47,19 +45,20 @@ __Once you have run the code to create the Dashboard, go to `http://127.0.0.1:80
47
45
48
46
### Basic Callback
49
47
```jldoctest
50
-
julia> import HTTP
48
+
51
49
julia> using Dash
52
-
julia> app = dash("Test app", external_stylesheets = ["https://codepen.io/chriddyp/pen/bWLwgP.css"]) do
* You can make your dashboard interactive by register callbacks for changes in frontend with function ``callback!(func::Function, app::Dash, id::CallbackId)``
65
64
* Inputs and outputs (and states, see below) of callback are described by struct `CallbackId` which can easily created by string macro `callid""`
isempty(id.input) &&error("The callback method requires that one or more properly formatted inputs are passed.")
227
+
228
+
length(id.output) !=length(unique(id.output)) &&error("One or more callback outputs have been duplicated; please confirm that all outputs are unique.")
229
+
213
230
for out in id.output
214
231
ifany(x->out in x.id.output, values(app.callbacks))
215
232
error("output \"$(out)\" already registered")
@@ -219,8 +236,13 @@ function callback!(func::Function, app::DashApp, id::CallbackId; pass_changed_pr
0 commit comments