-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #99 from brendanprice2003/Ver-5.6+
0.5.6 into main
- Loading branch information
Showing
70 changed files
with
2,228 additions
and
2,373 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,17 @@ | ||
|
||
// Add a new row to a defined table | ||
// @object {table}, @array {data} | ||
export function AddTableRow(table, data = ['', '', '']) { | ||
export function AddTableRow(table, data = ['', '']) { | ||
|
||
// data param | ||
// 0, Item Name / 1, Category / 2, Relation | ||
// "data" parameter | ||
// 0, Item name | ||
// 1, Item relation count | ||
|
||
// Insert new row using data parameter | ||
const row = table.insertRow(-1); | ||
|
||
// Insert data into cells | ||
for (let i=0; i<data.length; i++) { | ||
// Iterate over data array and insert each item into a row. Push row to DOM | ||
for (let i=0; i < data.length; i++) { | ||
row.insertCell(i).innerHTML = data[i]; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.