Page:: create_row()

This method allows the application user to add a new empty row(s) below or above the current selection in a table and is implemented as a button event listener.

Description

Set the page in edit mode allowing one to make the changes and manipulate the row.

Get the selected table-row(tr).

Afterwards create a new table-row(tr) element below the selected one if there is any selected.(Get the table body.)

Get the row index of the selected row to append to, else if no row is selected, append to the first row.

Insert the new empty row into the table body.

Then create a new table-row(tr) with no data into the table.