I’d like to let the user enter various fields, but not react to them until a button is clicked. How would one accomplish this? For instance:
@app.callback( Output('lookups', 'children'), events=[Event('run', 'click')]) def lookups(): # do stuff based on Input('foo', 'value') return stuff
Does that make sense? I’m doing an api call with the input (text box) contents. If I make the callback take
Input('foo', 'value') and then pass
foo to the function, it’s calling the api with each changed character, which fails because the value isn’t complete.
My thought was to wait until a button was clicked. This would signal the user was done typing, and we wouldn’t run into this issue. I do the call with the contents of
foo, though, so I don’t want to react to it, but I do need to get at the contents.