Table Interface
A table.
This API is provided as an alpha preview and may change without notice.
For more information about our API support guarantees, see here.
Sealed
This type is "sealed," meaning that code outside of the library defining it should not implement or extend it. Future versions of this type may add members or make typing of readonly members more specific.
Signature
/** @sealed */
interface Table<TScope extends string | undefined, TCell extends ImplicitAllowedTypes, TColumn extends System_TableSchema.ColumnSchemaBase<TScope, TCell>, TRow extends System_TableSchema.RowSchemaBase<TScope, TCell>>
Type Parameters
| Parameter | Constraint | Description |
|---|---|---|
| TScope | string | undefined | The schema factory scope. |
| TCell | ImplicitAllowedTypes | The type of the cells in the table. |
| TColumn | System_TableSchema.ColumnSchemaBase<TScope, TCell> | The type of the columns in the table. |
| TRow | System_TableSchema.RowSchemaBase<TScope, TCell> | The type of the rows in the table. |
Properties
| Property | Alerts | Modifiers | Type | Description |
|---|---|---|---|---|
| columns | Alpha | readonly | TreeArrayNode<TColumn> | The table's columns. |
| rows | Alpha | readonly | TreeArrayNode<TRow> | The table's rows. |
Methods
| Method | Alerts | Return Type | Description |
|---|---|---|---|
| getCell(key) | Alpha | TreeNodeFromImplicitAllowedTypes<TCell> | undefined | Gets a cell in the table by corresponding column and row. |
| getColumn(id) | Alpha | TreeNodeFromImplicitAllowedTypes<TColumn> | undefined | Gets a table column by its id. |
| getColumn(index) | Alpha | TreeNodeFromImplicitAllowedTypes<TColumn> | undefined | Gets a table column by its index in the table. |
| getRow(id) | Alpha | TreeNodeFromImplicitAllowedTypes<TRow> | undefined | Gets a table row by its id. |
| getRow(index) | Alpha | TreeNodeFromImplicitAllowedTypes<TRow> | undefined | Gets a table row by its index in the table. |
| insertColumns(params) | Alpha | TreeNodeFromImplicitAllowedTypes<TColumn>[] | Inserts 0 or more columns into the table. |
| insertRows(params) | Alpha | TreeNodeFromImplicitAllowedTypes<TRow>[] | Inserts 0 or more rows into the table. |
| removeCell(key) | Alpha | TreeNodeFromImplicitAllowedTypes<TCell> | undefined | Removes the cell at the specified location in the table. |
| removeColumns(index, count) | Alpha | TreeNodeFromImplicitAllowedTypes<TColumn>[] | Removes a range of columns from the table. |
| removeColumns(columns) | Alpha | TreeNodeFromImplicitAllowedTypes<TColumn>[] | Removes 0 or more columns from the table. |
| removeColumns(columns) | Alpha | TreeNodeFromImplicitAllowedTypes<TColumn>[] | Removes 0 or more columns from the table. |
| removeRows(index, count) | Alpha | TreeNodeFromImplicitAllowedTypes<TRow>[] | Removes a range of rows from the table. |
| removeRows(rows) | Alpha | TreeNodeFromImplicitAllowedTypes<TRow>[] | Removes 0 or more rows from the table. |
| removeRows(rows) | Alpha | TreeNodeFromImplicitAllowedTypes<TRow>[] | Removes 0 or more rows from the table. |
| setCell(params) | Alpha | void | Sets the cell at the specified location in the table. |