Store output of function called on button click
Hi, I'm using a button to call a function that returns a tuple. Is there an existing attribute of the button to access the 'on_click' output? Didn't see anything in the docs.
Solution:Jump to solution
There are a few examples of accessing the values of the buttons in the docs:
https://docs.marimo.io/api/inputs/button.html#button
You may also can use
mo.ui.run_button
which can lazily process downstream cells:
https://docs.marimo.io/api/inputs/run_button.html#run-button...1 Reply
Solution
There are a few examples of accessing the values of the buttons in the docs:
https://docs.marimo.io/api/inputs/button.html#button
You may also can use
mo.ui.run_button
which can lazily process downstream cells:
https://docs.marimo.io/api/inputs/run_button.html#run-button