Add a listener. This is very similar to default javascript listeners except the offer a few additional options and there is no remove listener.
These add listeners return a function that can be called to remove the listener. Additionally they honor transactional boundaries.
Listeners are fired in the order that they are added.
Optional
options: ListenerOptionsSet the header size to the 'best fit' based on the data. If the span has no data then the defaultSize will be used.
Optional
options: AutoFitOptionsReturns the size of the header in pixels. If a second argument is passed it will be the size of all the headers within the range. Note - It is expected that indexFrom will always be less than or equal to indexTo
Optional
indexTo: numberReturns a range of cells for the specified range. These allow for interaction with the cells.
Optional
address: CellHeaderRangeAddressIf no address is specified then this will use the intersection of the cell bounds and the selection bounds.
This is a very specific optimization function. When hiding many headers instead of scanning we can just skip. If this returns zero there are no hidden headers immediately following this one. If a count of 1 then only this header is hidden
Optional
forward: booleansearches forward. defaults to true
count
The direction of the headers
Begins a transaction but puts it onto a global stack. This will batch all 'transactional' changes until they have all be committed or rolled back.
Optional
description: stringAny changes that are made to this object will be reflected in the local sheet but not committed to the transactional store until the batch is popped.
Sets the headers. This supports setting values as a batch. Note - When setting headers the cells references by this sheet will not update. To ensure they are updated you must also call setCellPairs with the range of the header.
Optional
options: SetHeaderOptionsReturns the sheet model used for the header.
Returns the sheet style used for the header.
Simplified api provided to be similar to range update.
Optional
options: SetHeaderOptionsThis only supports one range at a time but offers a few flavors
Objects that support interfacing with a transactional store implement this interface.