Since (component).getText() is not available *yet*, the basic component referencing often become too convoluted as the component count goes up. So the following use case proposes an unified component referencing method inside and outside of EventHandler. (cannot see the demo? Update: I revised this code after the Johninio's comment here. Update2: GAS team recently introduced the CacheService class, and now we can simplify our method as below: (on GUI Builder, 'update' has registered as 'On Change' event handler of txtSource, and 'copy' for 'On Mouse Click' of btnCopy) |
Labs >