(worksheet, table)
| 68 | |
| 69 | class Table { |
| 70 | constructor(worksheet, table) { |
| 71 | this.worksheet = worksheet; |
| 72 | if (table) { |
| 73 | this.table = table; |
| 74 | // check things are ok first |
| 75 | this.validate(); |
| 76 | |
| 77 | this.store(); |
| 78 | } |
| 79 | } |
| 80 | |
| 81 | getFormula(column) { |
| 82 | // get the correct formula to apply to the totals row |