Understanding State
Get familiar with the basics of the State argument of callback functions in Dash.
Introduction to the State
parameter
The typical callback function structure that we’ve used so far contains one or more Output
elements and one or more Input
elements. The callbacks fire immediately when users modify an Input
element. We want to relax this option a little.
We’ll start with a simple example demonstrating why and how to use State
, which is an optional argument that can be given to our callbacks.
To make the problem we’re trying to solve clear, take a look at the illustration below:
Get hands-on with 1400+ tech skills courses.