You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a callback function that can be run in the case of a reset.
This is useful if you want to change some value in your app in the case of a reset. Pulling from my fork that, unfortunately, I have so it won't let me make a pull request.
To the main function add this argument: reset_function: Callable[[], None] = None,
With this doc string:
reset_function (Callable[[], None], optional):
Function that is called after the user has reset the combobox. Defaults to None.
Then this needs to be in the if interaction == "reset": block, before the return:
if reset_function is not None:
reset_function()
The text was updated successfully, but these errors were encountered:
Add a callback function that can be run in the case of a reset.
This is useful if you want to change some value in your app in the case of a reset. Pulling from my fork that, unfortunately, I have so it won't let me make a pull request.
To the main function add this argument:
reset_function: Callable[[], None] = None,
With this doc string:
Then this needs to be in the
if interaction == "reset":
block, before the return:The text was updated successfully, but these errors were encountered: