diff --git a/packages/core/README.md b/packages/core/README.md index ac8ced92bb..564895614c 100644 --- a/packages/core/README.md +++ b/packages/core/README.md @@ -451,16 +451,19 @@ For example ```typescript const tableData = [ - {data: 'Header1', header: true}, - {data: 'Header2', header: true}, - {data: 'Header3', header: true}, - {data: 'MyData1'}, - {data: 'MyData2'}, - {data: 'MyData3'} -] + [ + {data: 'Header1', header: true}, + {data: 'Header2', header: true}, + {data: 'Header3', header: true}, + ], [ + {data: 'MyData1'}, + {data: 'MyData2'}, + {data: 'MyData3'} + ] +]; // Add an HTML table -core.summary.addTable([tableData]) +core.summary.addTable(tableData) // Output:
Header1 | Header2 | Header3 |
---|---|---|
MyData1 | MyData2 | MyData3 |