参考 addRow()

addRow()

Use addRow() to add a new row of data to a p5.Table object. By default, an empty row is created. Typically, you would store a reference to the new row in a TableRow object (see newRow in the example above), and then set individual values using set().

If a p5.TableRow object is included as a parameter, then that row is duplicated and added to the table.

示例

语法

addRow([row])

参数

row
p5.TableRow:

row to be added to the table

Returns

p5.TableRow: the row that was added
Notice any errors or typos? Please let us know. Please feel free to edit src/io/p5.Table.js and open a pull request!

相关参考