Skip to content

Syntax and semantics of creating rows and cells dynamically in a table #1439

Answered by ajRED777
acarvajal12 asked this question in Q&A
Discussion options

You must be logged in to vote

Not sure if you got the answer but just posting here for future references.

function generate() {
   journalList = [
                {
                    "note": "QA journal",
                    "entryDate": "2021-09-28T06:00:40.000Z"
                    
                },
                {
                    "note": "QA journal",
                    "entryDate": "2021-09-28T06:00:36.000Z"
                }
  ];
 const table = new docx.Table({
   
    columnWidths: [3505, 5505],
    rows: [
    ],
});

journalList.map((val,key)=>{
      var tableRow=new docx.TableRow({
            children: [
                new docx.TableCell({
                    width: {
                        siz…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@dolanmiu
Comment options

@dolanmiu
Comment options

@reyhanfdz
Comment options

Answer selected by dolanmiu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants