Rows

Row Methods

Delete Row Methods

Use the following methods to delete rows from a data table.

The following deletes all rows where UserName is apeters.

table.delete().eq("UserName", "apeters");

Update Row Methods

Use the following methods to update the values of rows in a data table.

The first example below sets the Active column to false for all rows. The second example sets the Active column to false only for UserName apeters. It is otherwise set to true.

table.update("Active").value(false);

...

table.update("Active").filter((row, index, rows) => {
    return (row.UserName == "apeters") ? false :  true;
});

Visit DataTable Rows for detailed examples of using row data table methods.

Last updated