From the course: Interactive Dashboards with Plotly and Dash

Unlock this course with a free trial

Join today to access over 25,300 courses taught by industry experts.

Demo: Callback functions

Demo: Callback functions

- [Instructor] Okay, so let's go ahead and pick up our application where we left it off last time. If you recall, we have an HTML div. We need some sort of HTML layout, and a div is the most generic piece of a webpage. It starts with the text to pick a country and is immediately followed by this dropdown menu that has five options. The default value is going to be USA and the ID is country dropdown. And if you recall, this doesn't really do anything. We can select these different options, but these values that we're selecting here don't go anywhere. So we need somewhere to output what we eventually want to come from our callback function. So let's create somewhere to store output from a callback function, and we could do an HTML dot div within the div. We can have subsections within our div. But just to start getting us some intuition about different types of HTML. If I did H1 this would be the biggest possible header in HTML. H2 would be the second, or H3 would be a little bit…

Contents