title: Primeng RowIndex of editable row
body: <p>Want to take rowIndex on a p-table editable, already tried with DomHandler with ElementRef.</p>
  
  <pre><code>&lt;p-table #dt [value]="someArrayObject"&gt;
      &lt;ng-template pTemplate="header"&gt;
      &lt;/ng-template&gt;
      &lt;!-- Column headers --&gt;
      &lt;ng-template pTemplate="body" let-rowData let-i="rowIndex"&gt; &lt;!-- let-i="rowIndex" is my last try --&gt;
          &lt;tr&gt;
              &lt;td pEditableColumn&gt;
                  &lt;p-cellEditor&gt;
                      &lt;ng-template pTemplate="input"&gt;
                          &lt;input type="text" [(ngModel)]="rowData.pmvPvp" required
                              (keydown.tab)="sumPvp($event)"
                              (keydown.enter)="sumPvp($event)"&gt;
                         &lt;!-- handling tab for edit completion --&gt;
                      &lt;/ng-template&gt;
                      &lt;ng-template pTemplate="output"&gt;
                          {{rowData.pmvPvp | number: '1.2'}}
                      &lt;/ng-template&gt;
                  &lt;/p-cellEditor&gt;
              &lt;/td&gt;
              &lt;!-- More columns --&gt;
          &lt;/tr&gt;
      &lt;/ng-template&gt;
   &lt;/p-table&gt;
  </code></pre>
  
  <p>this.dt.domHandler.index(this.dt.el.nativeElement) returns 1.</p>
  
  <p>let-i="rowIndex" returns 1.</p>
  
  <p>Am I missing something?</p>
  
  <p>I'm currently on PrimeNG 5.2.4 and cannot change it.</p>
  
  <p>Thanks.</p>