Use One Callback for Multiple App Designer Components
Sharing callbacks between components is useful when you want to offer multiple ways of
doing something in your app. For example, you might want your app respond the same
way when the user clicks a button or presses the Enter key in an edit field.
Example of a Shared Callback
This example shows how to create an app containing two UI components that share a
callback. The app displays a contour plot with the specified number of levels. When the
user changes the value in the edit field, they can press Enter or click the Update Plot
button to update the plot.
(^1) In App Designer, drag an Axes component from the Component Library onto the
canvas. Then make these changes:
17 App Programming