Hey there. I have three buttons that copy data to the clipboard (all data, filtered data, and selected data). I would prefer to have a dropdown menu with a button that could replace the three buttons.
My first thought is to hide the buttons and then trigger the button actions programmatically. Is this possible in Retool?
My second thought is to write a javascript query that copies the desired data to the clipboard, but I’m having trouble figuring out how to do that (i.e. selecting the data to use with the execCommand(“copy”) method on document.
All thoughts and solutions are welcome. Thank you!