레퍼런스 p5.TableRow

p5.TableRow

A TableRow object represents a single row of data values, stored in columns, from a table.

A Table Row contains both an ordered array, and an unordered JSON object.

구문

p5.TableRow([str], [separator])

매개변수

str
String:

optional: populate the row with a string of values, separated by the separator

separator
String:

comma separated values (csv) by default

메서드

set

Stores a value in the TableRow's specified column. The column may be specified by either its ID or title.

setNum

Stores a Float value in the TableRow's specified column. The column may be specified by either its ID or title.

setString

Stores a String value in the TableRow's specified column. The column may be specified by either its ID or title.

get

Retrieves a value from the TableRow's specified column. The column may be specified by either its ID or title.

getNum

Retrieves a Float value from the TableRow's specified column. The column may be specified by either its ID or title.

getString

Retrieves an String value from the TableRow's specified column. The column may be specified by either its ID or title.

Notice any errors or typos? Please let us know. Please feel free to edit src/io/p5.TableRow.js and open a pull request!

관련 레퍼런스