How to add a new row when button click on ag-grid?

Dears:

I would like to insert a new row on ag-grid when button click, I refer the Ag-grid docs that it might use the api.applyTransaction(transaction) but still don’t know how to achieve.

thanks in advance.