Skip to content

Commit

Permalink
#6 #3 Test (and examples) for ForEachCell - step 1/N - simple one-lin…
Browse files Browse the repository at this point in the history
…e foreach
  • Loading branch information
Pawel Siemienik committed Mar 26, 2020
1 parent 7a3537e commit ff205d2
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,13 @@ for more example I invite to tests data: [click here and check `Renderer` folder
| Navigation | [EndRowCell](./src/cell/EndRowCell.ts) | 2 | `#! END_ROW` | Go to the beginning of next row | |
| Worksheet<br/>Navigation<br/>Loop | [FinishCell](./src/cell/FinishCell.ts) | 7 | `#! FINISH conditionPath` | Finish rendering for current worksheet and: <br/> 1) go to next worksheet if `conditionPath===true`<br/> 2) repeat this template worksheet again (`conditionPath === false`) - looping through worksheets <br/> 3) finished whole rendering when this worksheet is the last one. | **Examples:**<br/> `#! FINISHED ` or `#! FINISHED itemFromLoop.__iterated` |
| Worksheet | [WsNameCell](./src/cell/WsNameCell.ts) | 13 | `#! WS_NAME pathToVariable` | Set worksheet's name. | **Examples:** <br/> `#! WS_NAME worksheetName` <br/> `#! WS_NAME item.title` <br/> `#! WS_NAME translatedNames.0` |
| View Model | **TODO: describe it!** [DeleteCell](./src/cell/DeleteCell.ts) | | | | |
| Loop | **TODO: describe it!** [DumpColsCell](./src/cell/DumpColsCell.ts) | | | | |
| Loop | **TODO: describe it!** [ForEachCell](./src/cell/ForEachCell.ts) | | | | |
| Loop | **TODO: describe it! test done: simple; tests todo: nested, with formula, stripped, through worksheets,** [ForEachCell](./src/cell/ForEachCell.ts) | | | | |
| Loop | **TODO: describe it!** [ContinueCell](./src/cell/ContinueCell.ts) | | | | |
| Loop | **TODO: describe it!** [EndLoopCell](./src/cell/EndLoopCell.ts) | | | | |
| Aggregation | **TODO: describe it!** [AverageCell](./src/cell/AverageCell.ts) | | | | |
| Aggregation| **TODO: describe it!** [SumCell](./src/cell/SumCell.ts) | | | | |
| View Model | **TODO: test - nested loop** [DeleteCell](./src/cell/DeleteCell.ts) | 14 | `#! DELETE pathToVariable` | Delete variable, useful for nested loops.| |


## Commands [PREVIOUS VERSION]:
Expand Down
Binary file not shown.
Binary file not shown.
52 changes: 52 additions & 0 deletions tests/integration/data/Renderer005-ForEach-simple/viewModel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"projects": [
{
"name": "ExcelJS",
"role": "maintainer",
"platform": "github",
"link": "https://github.com/exceljs/exceljs",
"stars": 5300,
"forks": 682
},
{
"name": "xlsx-import",
"role": "owner",
"platform": "github",
"link": "https://github.com/siemienik/xlsx-import",
"stars": 2,
"forks": 0
},
{
"name": "xlsx-import",
"role": "owner",
"platform": "npm",
"link": "https://www.npmjs.com/package/xlsx-import",
"stars": "n.o.",
"forks": "n.o."
},
{
"name": "xlsx-renderer",
"role": "owner",
"platform": "github",
"link": "https://github.com/siemienik/xlsx-renderer",
"stars": 1,
"forks": 0
},
{
"name": "xlsx-renderer",
"role": "owner",
"platform": "npm",
"link": "https://www.npmjs.com/package/xlsx-renderer",
"stars": "n.o.",
"forks": "n.o."
},
{
"name": "TS Package Structure",
"role": "owner",
"platform": "github",
"link": "https://github.com/Siemienik/ts-package-structure",
"stars": 2,
"forks": 0
}
]
}

0 comments on commit ff205d2

Please sign in to comment.