The Central Callback type. This type serves two purposes: 1. Externally, the Serialized object is returned via the `_dash-dependencies` endpoint of a dash application to set up the dash renderer loop 2. Internally, the HandlerFunction of the Callback is evaluated when a qualified call to `_dash-update-component` is performed. As this type needs dynamic members in addition to the static members created by the default constructor, it is not recommended to use the constructor to create a callback, but rather the `singleOut` or `multiOut` members. Creating an instance of this type and registering it on the callback map of the DashApp is the equivalent of the @app.callback decorator in python.
Constructor | Description |
Full Usage:
Callback(HandlerFunction, Multi, ?PreventInitialCall, ?ClientSideFunction)
Parameters:
'Function
Multi : bool
?PreventInitialCall : bool
?ClientSideFunction : ClientSideFunction
Returns: Callback<'Function>
|
|
Instance member | Description |
|
|
Full Usage:
this.HandlerFunction
Returns: 'Function
|
|
Full Usage:
this.Multi
Returns: bool
|
|
Full Usage:
this.PreventInitialCall
Returns: bool
|
|
Static member | Description |
|
|
|
|
|
|
|
|
Full Usage:
Callback.multiOut (input, outputs, handlerFunction, ?State, ?PreventInitialCall, ?ClientSideFunction)
Parameters:
CallbackInput
outputs : seq<CallbackOutput>
handlerFunction : 'Function
?State : seq<CallbackState>
?PreventInitialCall : bool
?ClientSideFunction : ClientSideFunction
Returns: Callback<'Function>
|
![]() ![]() ![]() ![]() ![]() ![]() returns a callback that binds a handler function mapping from a single input component to multiple output components (1 -> n) A `CallbackInput` that represents the input component of this callback. Changes to this component signalled by the client will trigger the callback. A sequence of `CallbackOutput` that represents the output components of this callback The handler function that maps the callback input components to the callback output components A sequence of `CallbackState` that represents additional input components of this callback. In contrast to the other input componenst, these will not trigger the handler function when changed on the client. Wether to prevent the app to call this callback on initialization A client side function to execute with the callback
|
Full Usage:
Callback.multiOut (inputs, outputs, handlerFunction, ?State, ?PreventInitialCall, ?ClientSideFunction)
Parameters:
seq<CallbackInput>
-
A sequence of `CallbackInput` that represents the input components of this callback. Changes to any of these components signalled by the client will trigger the callback.
outputs : seq<CallbackOutput>
-
A sequence of `CallbackOutput` that represents the output components of this callback
handlerFunction : 'Function
-
The handler function that maps the callback input components to the callback output components
?State : seq<CallbackState>
-
A sequence of `CallbackState` that represents additional input components of this callback. In contrast to the other input componenst, these will not trigger the handler function when changed on the client.
?PreventInitialCall : bool
-
Wether to prevent the app to call this callback on initialization
?ClientSideFunction : ClientSideFunction
-
A client side function to execute with the callback
Returns: Callback<'Function>
|
![]() ![]() ![]() ![]() ![]() ![]() returns a callback that binds a handler function mapping from multiple input components to multiple output components (n -> n)
|
|
|
Full Usage:
Callback.singleOut (input, output, handlerFunction, ?State, ?PreventInitialCall, ?ClientSideFunction)
Parameters:
CallbackInput
-
A `CallbackInput` that represents the input component of this callback. Changes to this component signalled by the client will trigger the callback.
output : CallbackOutput
-
A `CallbackOutput` that represents the output component of this callback
handlerFunction : 'Function
-
The handler function that maps the callback input components to the callback output components
?State : seq<CallbackState>
-
A sequence of `CallbackState` that represents additional input components of this callback. In contrast to the other input componenst, these will not trigger the handler function when changed on the client.
?PreventInitialCall : bool
-
Wether to prevent the app to call this callback on initialization
?ClientSideFunction : ClientSideFunction
-
A client side function to execute with the callback
Returns: Callback<'Function>
|
![]() ![]() ![]() ![]() ![]() ![]() returns a callback that binds a handler function mapping from a single input component to a single output component (1 -> 1)
|
Full Usage:
Callback.singleOut (inputs, output, handlerFunction, ?State, ?PreventInitialCall, ?ClientSideFunction)
Parameters:
seq<CallbackInput>
-
A sequence of `CallbackInput` that represents the input components of this callback. Changes to any of these components signalled by the client will trigger the callback.
output : CallbackOutput
-
A `CallbackOutput` that represents the output component of this callback
handlerFunction : 'Function
-
The handler function that maps the callback input components to the callback output components
?State : seq<CallbackState>
-
A sequence of `CallbackState` that represents additional input components of this callback. In contrast to the other input componenst, these will not trigger the handler function when changed on the client.
?PreventInitialCall : bool
-
Wether to prevent the app to call this callback on initialization
?ClientSideFunction : ClientSideFunction
-
A client side function to execute with the callback
Returns: Callback<'Function>
|
![]() ![]() ![]() ![]() ![]() ![]() returns a callback that binds a handler function mapping from multiple input components to a single output component (n -> 1)
|
|
![]() ![]() ![]() ![]() ![]() ![]() Returns a copy of the callback with all dynamic fields removed that prevent the callback to be correctly serialized and returned as dependency graph at `_dash-dependencies`
|