TableBaseCollection Object
Description
The base class for table collections.
Syntax
TableBaseCollectionExamples
The following example demonstrates TableBaseCollection in a practical document-editing workflow. The base class for table collections.
function onTxError(error) {
console.error("TX Text Control error:", error.msg);
error.handled = true;
}
function inspectTableBaseCollection(tableBases) {
tableBases.getItem(
function(table) {
if (!table) {
console.warn("No table was returned.");
return;
}
console.log("get item result:", table);
},
onTxError,
25
);
}Members
Methods
| Method | Description |
|---|---|
| elementAt | Returns the element at a specified index in the collection. (Inherited from Collection.) |
| forEach | Executes a callback function for each element. (Inherited from Collection.) |
| getCount | Gets the number of elements contained in the collection. (Inherited from Collection.) |
| getItem | Gets the first table in the collection with the given id. |
| removeAtInputPosition | Removes the table at the current input position. |
| removeById | Removes the first table with the passed id. |