diff --git a/README.md b/README.md index 17ca5dc..4b90972 100644 --- a/README.md +++ b/README.md @@ -59,6 +59,18 @@ php artisan make:sheet-model --- +You can use something like this to enable the macro generated on your sheet as an [installable trigger](https://developers.google.com/apps-script/guides/triggers/installable): + +```javascript +function createSpreadsheetOpenTrigger() { + var ss = SpreadsheetApp.getActive(); + ScriptApp.newTrigger('onEdit') + .forSpreadsheet(ss) + .onEdit() + .create(); +} +``` + ### The Resulting Model Class ```php