-
-
Notifications
You must be signed in to change notification settings - Fork 83
Expand file tree
/
Copy pathrow.ts
More file actions
22 lines (19 loc) · 511 Bytes
/
row.ts
File metadata and controls
22 lines (19 loc) · 511 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// A Row in the Table
import Column from './column'
export default class Row {
columns: Column[]
constructor(column_count: number) {
this.columns = []
for (let i = 0; i < column_count; i++) {
this.columns.push(new Column())
}
}
getData(): string {
// Format the row before returning it to the table
let ret = ''
this.columns.forEach((column) => {
ret = `${ret}${column.getData()}|`
})
return ret
}
}