phantom22
phantom225mo ago

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.
No description
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...
Jump to solution
1 Reply
Solution
Myles Scolnick
Myles Scolnick3mo ago
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