streamlit-ace icon indicating copy to clipboard operation
streamlit-ace copied to clipboard

what does the apply button do?

Open chanansh opened this issue 2 years ago • 4 comments

It's not clear what does the apply button do

chanansh avatar Nov 21 '22 13:11 chanansh

I'm facing the same difficult. I haven't found anything about the button or how to get the text return.

renanxx1 avatar Feb 09 '23 01:02 renanxx1

It is sad that docs do not mention it but you can access it using the return value of the component

result = st_ace('Type here', key='mytextarea')
print("Provided code:", result)

badayvedat avatar May 11 '23 16:05 badayvedat

If auto_update=False, the editor only processes if this button is pressed. I.e., you'd only get the contents of the editor once the user is done, and presses apply.

If auto_update=True, the editor processes after every keystroke, and you get the contents as it changes for every change. The apply button is not shown in that case.

This button was introduced here: https://github.com/okld/streamlit-ace/issues/2

NichtJens avatar Jul 10 '23 18:07 NichtJens

Want to be able to Change the text of Apply button or just hide the button without auto-updating

rimjhimittal avatar Jul 21 '24 16:07 rimjhimittal