Skip to content

Commit

Permalink
#38 format rows count and show blank on init load
Browse files Browse the repository at this point in the history
  • Loading branch information
RandomFractals committed Jun 18, 2019
1 parent 8291e04 commit 532702b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/data.view.html
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
<a title="Redo" href="#" onclick="redoConfig()"> ↪ </a>
-->
<a id="refresh-data-link" style="color: orange;" title="Refresh data" href="#" onclick="reloadData()"> 🔃 </a>
<span id="row-counter">0 rows</span>
<span id="row-counter"></span>
</div>
</div>
<perspective-viewer id="data-viewer" view="grid"></perspective-viewer>
Expand Down Expand Up @@ -139,7 +139,7 @@
// add rows update handler
viewer.addEventListener('perspective-view-update', event => {
// update row counter display
viewer.view.num_rows().then(rowCount => rowCounter.innerHTML = `${rowCount} rows`);
viewer.view.num_rows().then(rowCount => rowCounter.innerHTML = `${rowCount.toLocaleString()} rows`);
console.log(`data.view:refresh(${dataTable}): rowCount=${rowCount}`);
});

Expand Down

0 comments on commit 532702b

Please sign in to comment.