I have a sheet where opening the sidebar enables the user to chose which cells matching some criteria should have their background color changed, as to highlight corresponding cells, but _only_ when the sidebar is open. That is, all "highlighting" must be reset so that the background color of any changed cell goes back to the default sheet background color.
I can handle it with a custom close button, but of course this bugs the bits out of the UIX designer in me (two close buttons? really?). Having to setup an async poll is far more boilerplate than should be needed for something as simple as...
Can the GAS team add a callback function for when the "close" event of the sidebar occurs? Like how successhandler is interfaced.
Unless someone's got a practical solution (for instance I was hoping I could traverse the DOM and look for the element closest matching the close button closest to the unique literal set for the sidebar's title text, and just add an event listener but my knowledge isn't sufficient to do this simply enough at this time, if it is indeed possible in the GAS/Sheet universe).
Thanks,
Ashton