|
|
[This page](https://dash.plotly.com/basic-callbacks) provides a nice introduction to defining callback functions. These functions are defined in `app_callbacks.py`. Each callback function consists of a number of Inputs, Outputs, and optionally States. An Input component is one where a change in that component triggers or activates the callback function. The function itself performs some internal logic and its return values change the corresponding Outputs. These changes may then further trigger different Inputs and hence different callback functions. Sometimes, to generate the required Outputs you need to access values stored in other components but changes in these components should not trigger the function - these are defined using States.
|
|
|
|
|
|
Callbacks act on components defined in the [layout](layout) or defined and generated on the fly by other callback functions. Each Input/Output/State acts on an attribute (value, data, children, options, etc.) of a component defined by a unique ID.
|
|
|
|
|
|
To use the Mermaid diagram generator to generate a diagram of callbacks and the links between them, follow instructions on [this page](mermaid). |
|
|
\ No newline at end of file |