Alignment column

Alignment column

aaiglesias85aaiglesias85 Posts: 25Questions: 8Answers: 0
edited August 2018 in Free community support

Hello
I need to .alignment x column, my code is

 <table id="taxes-report-row-export" class="table" data-paging-container="#paging-ui-container" width="100%">
  <thead>
    <tr>
      <th>Date</th>
      <th>Flight</th> 

    customize: function (doc) {

      var rowCount = document.getElementById("taxes-report-row-export").rows.length;
       var table       = document.getElementById("taxes-report-row-export");

       for (i = 0; i < rowCount; i++) {
           doc.content[1].row.body[i][5].alignment = 'right';
        };

Error : Uncaught TypeError: Cannot read property 'table' of undefined.

Regards

This question has an accepted answers - jump to answer

Answers

  • aaiglesias85aaiglesias85 Posts: 25Questions: 8Answers: 0

    fix for

    for (i = 0; i < rowCount; i++) {
    doc.content[1].table.body[i][5].alignment = 'right';
    };
    The same error : Uncaught TypeError: Cannot read property 'table' of undefined.

  • colincolin Posts: 15,240Questions: 1Answers: 2,599
    Answer ✓

    Hi @aaiglesias85 ,

    This FAQ here will get you going,

    Cheers,

    Colin

This discussion has been closed.