Skip to content

Commit

Permalink
Merge pull request #291 from codeforequity-at/patch-1
Browse files Browse the repository at this point in the history
Docs Sample Code - "loadCells" instead of "getCells"
  • Loading branch information
theoephraim authored Feb 10, 2020
2 parents 6c035a3 + ae4109c commit 5e985bb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/classes/google-spreadsheet-worksheet.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,13 +112,13 @@ You can filter the cells you want to fetch in several ways.
See [Data Filters](https://developers.google.com/sheets/api/reference/rest/v4/DataFilter) for more info. Strings are treated as A1 ranges, objects are detected to be a [GridRange](https://developers.google.com/sheets/api/reference/rest/v4/spreadsheets/other#GridRange) with sheetId not required.

```javascript
await sheet.getCells(); // no filter - will load ALL cells in the sheet
await sheet.getCells('B2:D5'); // A1 range
await sheet.getCells({ // GridRange object
await sheet.loadCells(); // no filter - will load ALL cells in the sheet
await sheet.loadCells('B2:D5'); // A1 range
await sheet.loadCells({ // GridRange object
startRowIndex: 5, endRowIndex: 100, startColumnIndex:0, endColumnIndex: 200
});
await sheet.getCells({ startRowIndex: 50 }); // not all props required
await sheet.getCells(['B2:D5', 'B50:D55']); // can pass an array of filters
await sheet.loadCells({ startRowIndex: 50 }); // not all props required
await sheet.loadCells(['B2:D5', 'B50:D55']); // can pass an array of filters
```

Param|Type|Required|Description
Expand Down

0 comments on commit 5e985bb

Please sign in to comment.