diff options
Diffstat (limited to 'Base/res')
-rw-r--r-- | Base/res/js/Spreadsheet/runtime.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Base/res/js/Spreadsheet/runtime.js b/Base/res/js/Spreadsheet/runtime.js index 43a2591364..8b48b2f56f 100644 --- a/Base/res/js/Spreadsheet/runtime.js +++ b/Base/res/js/Spreadsheet/runtime.js @@ -133,6 +133,10 @@ class Ranges { this.ranges = ranges; } + first() { + return this.ranges[0].first(); + } + static from(...ranges) { return new Ranges(ranges); } @@ -178,6 +182,10 @@ class Range { this.normalize(); } + first() { + return new Position(this.startingColumnName, this.startingRow); + } + forEach(callback) { const ranges = []; let startingColumnIndex = thisSheet.column_index(this.startingColumnName); |