How to use the dataproofer.Rendering.prototype function in dataproofer

To help you get started, we’ve selected a few dataproofer examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github dataproofer / Dataproofer / electron / js / renderer.js View on Github external
handsOnTable.selectCell(row, col);
    }
  }

  var searchTimeout;
  this.searchHandler = function (event) {
    if(searchTimeout) clearTimeout(searchTimeout);
    setTimeout(function() {
      handsOnTable.search.query(event.target.value);
      handsOnTable.render();
    }, 500)
  }
  var searchField = document.getElementById("search-field");
  Handsontable.Dom.addEvent(searchField, "keydown", this.searchHandler);
};
HTMLRenderer.prototype = Object.create(Renderer.prototype, {});
HTMLRenderer.prototype.constructor = HTMLRenderer;

HTMLRenderer.prototype.addResult = function(suite, test, result) {
  this.resultList.push({ suite: suite, test: test, result: result || {} });
};

HTMLRenderer.prototype.destroy = function() {
  var searchField = document.getElementById("search-field");
  Handsontable.Dom.removeEvent(searchField, "keydown", this.searchHandler)
  this.handsOnTable.destroy();
  d3.select("#grid").selectAll("*").remove();
}

HTMLRenderer.prototype.done = function() {
  var columnHeads = this.columnHeads;
  var rows = this.rows;