dataFrame.row — insertAfter()
Description
The insertAfter() method of the row object repositions the selected row immediately after the specified row.
Signature
dataFrame.row(sourceRowIndex).insertAfter(targetRowIndex)Arguments
sourceRowIndex(number)- The index of the row to be placed.
targetRowIndex(number)- The index of the row after which the selected row will be placed.
Example
// insert the row 1 of the dataFrame after the row 2
dataFrame.row(1).insertAfter(2);