Javascript: Table.nestedTables Property
Description
Gets a collection of all tables nested in this table.
Syntax
<TableBaseCollection> Table.nestedTablesExamples
The following example demonstrates Table.nestedTables in a practical document-editing workflow. It gets a collection of all tables nested in this table.
function onTxError(error) {
console.error("TX Text Control error:", error.msg);
error.handled = true;
}
TXTextControl.textParts.getMainText(function(mainText) {
const tables = mainText.tables;
tables.getItem(function(table) {
if (!table) {
console.warn("No table is available at the current input position.");
return;
}
table.nestedTables.getCount(function(count) {
console.log("nested tables count:", count);
}, onTxError);
}, onTxError);
}, onTxError);Limitations
Read Only.