feat: begin working on implementing record methods

This commit is contained in:
StevanFreeborn
2023-02-09 22:21:20 -06:00
parent 3b3e210920
commit fde8b50717
30 changed files with 629 additions and 286 deletions
+18 -2
View File
@@ -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;
}