For runtime type checking.
For runtime type checking.
Add a single column.
Optionalvalues: Scalar[]Optionalname: stringOptionaloptions: ITransaction.OperationOptionsAdd a set of callbacks to receive notification.
The callbacks object.
Optionaloptions: IListener.Options
Options
A function that can be called to remove the listener.
Add a single row to the table.
Optionalindex: number
The body row the new row goes in before, 0 being the first. Omitted, the row
is added at the end.
Optionaloptions: ITransaction.OperationOptionsThis is a convenience method for (index, 1)
Add a number of rows to a table.
The body row the new rows go in before, 0 being the first. An index at or past
the number of body rows adds them at the end, above the totals row if there is one.
The number of rows to add. Defaults to 1.
Optionaloptions: ITransaction.OperationOptionsApplies all filters using the existing criteria.
Optionaloptions: ITransaction.OperationOptionsResolves once the rows are hidden; one transaction, one undo step.
Applies all sorts using the existing criteria.
Optionaloptions: ITransaction.OperationOptionsApplies both applyFilters and applySorts, in that order, as one transaction.
Optionaloptions: ITransaction.OperationOptionsBatches all 'transactional' changes until they have all be committed or rolled back.
Optionaloptions: string | ITransaction.OperationOptions
Description of the operation or additional options. Used for tracking undo/redo and history. Default Value User Operation.
Any changes that are made to this object will be reflected in the local record but not committed to the transactional store until the batch is popped.
Useful for operations that are longer running but generally not recommended as it keeps a transaction open. doBatch is the preferred option.
Similar to delete but cleans resources and can't be undone.
Convert the existing table to a range. This will remove the table but preserve the original data and formatting.
The maximum number of convert.
Optionaloptions: ITransaction.OperationOptionsDeletes the table and clears its cells.
Optionaloptions: ITransaction.OperationOptionsClears all filters and shows every row of the table, as Excel's Clear does — a row hidden by hand inside the table comes back too. The header and totals rows are never touched.
Optionaloptions: ITransaction.OperationOptionsDelete the rows from the table.
The index to clear from
Optionaloptions: ITransaction.OperationOptionsDeletes both sorts and filters as one transaction.
Optionaloptions: ITransaction.OperationOptionsProvides a mechanism to perform a set of operations in a batch.
A callback that performs multiple operations all within the same transaction.
Optionaloptions: string | ITransaction.OperationOptions
Description of the operation or additional options. Used for tracking undo/redo and history. Default Value User Operation.
Replaces the filter levels and hides the rows that fail them.
Optionalconditions: ICondition.RangeOptions | Input<any>
undefined or { conditions: [] } → clears every filter, as deleteFilters.
ICondition.Input → one filter on the first column, as ICellRange.filter.{ conditions: [...] } → one level per condition, on the column each index names
(its position in the array when omitted), in that order.Optionaloptions: ITransaction.OperationOptionsResolves once the rows are hidden; one transaction, one undo step.
Returns the active filter entries as handle objects,
Returns the active sorts ordered by priority.
The anchor coordinates in authored order, or null when unanchored.
Returns which edges of the table grow when something is entered just beside it.
Returns an column for the given index.
The index of the column.
The column or null if not found.
Returns the columns for this table.
Get the range between the header and the total.
Returns the filter at the specified index, or null if none.
The first anchor coordinates, or null when unanchored.
The coords-level peer of getRange. Like getAnchorCoords, not on IAnchored — see there.
Returns where a formula entered in the row just below the table goes.
Get the header row range.
A unique identifier for the record. This will never change.
This enables the record to be identified across transactions and users in a collaborative environment. The id is store-issued (IStore.create); the store keys all state by it.
The table's entry in the workbook's names, or null if it is not named.
The first anchor range.
Optionaloptions: ICellRange.GetRangeOptionsNot on IAnchored — single-range-ness is a property of the concrete type, so ITable,
IMovable, IDataValidation and IConditionalFormat declare it themselves. Invalid, never
null, when unanchored.
Returns the table style resolved against this table's geometry, as a per-cell properties provider.
Returns the ranges this object is anchored to, in authored order.
Optionaloptions: ICellRange.GetRangeOptionsnull. An item whose last range was removed by a row/column delete returns an
invalid ranges — ask ICellRanges.isInvalid, the same contract as
ITable.getDataRange.getRange() for it, but data validations, conditional formats and protected ranges are
authored as several, and any single range can become several when a delete splits it.Returns the sheet the table is associated with.
Returns the sort at the specified index.
A sort object (which may have a null criteria) or null if the
index is invalid or the table is closed.
Returns the current ITableStyle used.
Returns a cell style for the given coords.
The absolute coords.
Get the style info.
Get the total row range.
Every committed update gives the record a new, strictly increasing version id.
Used with getId to uniquely identify a version of the record.
The id is an identity, not a per-record count: ids are drawn from a single store-wide sequence bumped once per commit, so all records written in the same commit share an id and a given record's ids increase but are not sequential.
Records are immutable so a restore/revert doesn't change them — it repoints, and the version id reported is the one for the snapshot the store is currently at. Version ids are never reused: a write after an undo receives an id higher than any previously issued, so a stale reader can always detect the change.
Returns the coords after any hidden values are applied.
The absolute coords
Returns if the model has been closed
A table is deleted when its state says so - and when it has no state at all.
Returns if the table is set to not fill a formula down its column.
Returns a flag indicating if the first column is visible due to hidden headers.
Returns a flag indicating if the header is visible due to hidden headers.
To know if the header flag is set use isShowHeaders
Returns whether the filter/sort button at the specified index is hidden.
This will only return true if all buttons are hidden.
Returns a flag indicating if the first column is visible due to hidden headers.
If the anchor is unable to be modified.
Specifies if banded columns is being applied.
Specifies if banded rows is being applied.
Specifies if headers are being shown for the table.
Specifies if first column is being highlighted.
Specifies if last column is being highlighted.
Specifies if totals are being shown for the table.
Returns a flag indicating if the footer is visible due to hidden headers.
Resize the table.
The new size of the table.
Optionaloptions: ITransaction.OperationOptionsResizes the current range to the specified ending row and column indices.
The new row count.
The new column count.
Optionaloptions: ITransaction.OperationOptionsICellRange with the resized range.
Selects the current table.
Optionaloptions: ICellRange.SelectOptionsAn async boolean indicating the table was selected.
Set which edges of the table grow when something is entered just beside it.
Optionaloptions: ITransaction.OperationOptionsThis is the alternative text use for assistive technologies.
A short human readable text. Default value null.
Optionaloptions: ITransaction.OperationOptionsIf true a formula entered into one cell of an empty column is not filled down the column.
Optionaloptions: ITransaction.OperationOptionsSet where a formula entered in the row just below the table goes.
Optionaloptions: ITransaction.OperationOptionsSets whether the filter/sort button at the specified index is hidden.
If hidden is true then all filter/sort buttons are hidden.
Set the name for a table object.
A unique name.
Optionaloptions: ITransaction.OperationOptionsSpecifies if banded columns is being applied.
Optionaloptions: ITransaction.OperationOptionsSpecifies if banded rows is being applied.
Optionaloptions: ITransaction.OperationOptionsSpecifies if headers are being shown for the table.
Optionaloptions: ITransaction.OperationOptionsSpecifies if first column is being highlighted.
Optionaloptions: ITransaction.OperationOptionsSpecifies if last column is being highlighted.
Optionaloptions: ITransaction.OperationOptionsSpecifies if totals are being shown for the table.
Optionaloptions: ITransaction.OperationOptionsReplaces the sort chain.
Optionaloptions: ISort.RangeOptions & ITransaction.OperationOptions
undefined or no sorts → clears existing sort levels.
sorts: [] → explicitly clears all sort levels.sorts: [...] → replaces the sort levels (primary → secondary → ...).Returns the address as a string.
Updates the table StyleInfo.
Style options unique to the table.
A Table is an embedded table that allows for advanced capabilities.