fix for issue: Results Grid Row Indicator Zero Based #2152 (#2232)

This commit is contained in:
Alan Ren
2018-08-14 17:38:00 -07:00
committed by GitHub
parent 298ddc4195
commit 44e9a97f09

View File

@@ -63,7 +63,9 @@ export class RowNumberColumn<T> implements Slick.Plugin<T> {
private formatter(row, cell, value, columnDef: Slick.Column<T>, dataContext): string {
if (dataContext) {
return `<span>${row}</span>`;
// row is zero-based, we need make it 1 based for display in the result grid
//
return `<span>${row + 1}</span>`;
}
return null;
}