Add Row to an Existing Table in Presentation Using Aspose.Slides for Node.js

Hi team, How can I add a row inside an existing table dynamically.

@karanmarsh,
Thank you for posting the question.

When a new row is added to a table in a PowerPoint presentation, a row style has to be applied. To do this, you can clone a row by specifying a template row from the table. The following code snippet shows you how to do this:

templateRowIndex = 1;
templateRow = table.getRows().get_Item(templateRowIndex);

addedRows = table.getRows().addClone(templateRow, false);

for (let i = 0; i < addedRows.length; i++) {
    for (let j = 0; j < addedRows[i].size(); j++) {
        addedRows[i].get_Item(j).getTextFrame().setText("");
    }
}