what does the apply button do?
chanansh opened this issue · 4 comments
chanansh commented
It's not clear what does the apply button do
renanxx1 commented
I'm facing the same difficult. I haven't found anything about the button or how to get the text return.
badayvedat commented
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)
NichtJens commented
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: #2