feat: begin working on implementing record methods
This commit is contained in:
+18
-2
@@ -1,8 +1,24 @@
|
||||
/**
|
||||
* @class Row - Represents a row of data in a report.
|
||||
*/
|
||||
export class Row {
|
||||
/**
|
||||
* @property {number} recordId - The id of the record that the row represents.
|
||||
*/
|
||||
public recordId: number;
|
||||
public cells: object[];
|
||||
|
||||
constructor(recordId: number, cells: object[]) {
|
||||
/**
|
||||
* @property {any[]} cells - The cells in the row.
|
||||
*/
|
||||
public cells: any[];
|
||||
|
||||
/**
|
||||
* @constructor - Creates a new instance of Row.
|
||||
* @param {number} recordId - The id of the record that the row represents.
|
||||
* @param {any[]} cells - The cells in the row.
|
||||
* @returns {Row} - A new instance of Row.
|
||||
*/
|
||||
constructor(recordId: number, cells: any[]) {
|
||||
this.recordId = recordId;
|
||||
this.cells = cells;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user