Submodal
Submodal
I want to have make a form input in an editor act as a button to toggle a sub modal with a few parameters that packs into a json/csv. Basically, if I click a text input a new modal shows up with a few text input boxes. If I click a submit button it will close the modal and a json/csv will show the value of the modal inputs in one line. If I can figure out how I can catch an onclick event in an editor modal I think I can figure out the rest. Does anyone have an idea?
Answers
Found earlier, similar questions with the answer that it's not possible. I will probably make a modal tied to a double click event on a cell instead.
Perhaps one option would be to have a custom button (
buttons()
) which you can assign an action to - you could use that to toggle the view perhaps?There is an example of a custom button here - not for JSON input, but it might help with the button aspect.
Allan