Tutorial: ColumnOrRow.getContent

ColumnOrRow.getContent

Retrieves the content array of the ColumnOrRow

Get the content of ColumnOrRow

if (!fin.me.isView) {
    throw new Error('Not running in a platform View.');
}

const stack = await fin.me.getCurrentStack();
// Retrieves the parent ColumnOrRow
const columnOrRow = await stack.getParent();

// returns [TabStack]
const contentArray = await columnOrRow.getContent();
console.log(`The ColumnOrRow has ${contentArray.length} item(s)`);