row(index, [new_order], [row])

Class: Table.

Description:

Gets or updates an existing row at a specified index.

Parameters:

Name Type Default Description

index

number

Index of the row.

[new_order]

boolean

false

Specifies if the index argument is based on a new sorted order (true) or not (false).

[row]

Array.<(string|number|boolean)>

array - A new row that will replace an existing row at specified index.

Returns:

When retrieving a row an Array is returned. When updating updating a row an instance of this Table is returned.

Type: Array.<(string|number|boolean)> | Table

Examples:

// To update values of an existing row at index 5
table.row(5, false, ["Jane Dow", 40, false, "Charlotte, NC", "[View|Remove]"]);