rows([rows_or_new_order], [filter])
Class: Table.
Description:
Sets or gets all rows (array of arrays representing rows and cells) of the table. When setting rows, it replaces existing rows. To simply remove all rows pass null or empty Array as first argument.
When getting rows you can pass "true" to get them in the new sorted order instead of original order.
To filter out some rows pass filter argument. See Table > filter function's documentation for details about filter expression.
Parameters:
| Name | Type | Default | Description |
|---|---|---|---|
|
|
Array | boolean |
false |
Array of rows to set for the table, or boolean |
|
|
string |
Filter expression to retrieving only rows that meet the specified criteria. Default is |
Returns:
When settings rows to the table an instance of this this Table is returned. When retrieving rows a two-dimensional Array of rows is returned.
Type: Array | Table
