Created
October 26, 2015 20:45
-
-
Save mindspank/5318b0410c3133ef7e25 to your computer and use it in GitHub Desktop.
Grid change
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| app.getObject( "THE SHEET ID" ).then(function(obj) { | |
| // Patch some properties on the sheet. | |
| // In this case replace the column and row properties with new values | |
| obj.applyPatches([{ | |
| qPath: '/columns', | |
| qOp: 'replace', | |
| qValue: '200' | |
| },{ | |
| qPath: '/rows', | |
| qOp: 'replace', | |
| qValue: '100' | |
| }]) | |
| }) | |
| .then(function() { | |
| // Save the app, on QES you could just save | |
| // the objects instead of the whole app. | |
| return app.doSave() | |
| }) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment