How to use the dataproofer.Rendering 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
var _ = require("lodash");
var d3 = require("d3");
var Renderer = require("dataproofer").Rendering;
var util = require("dataproofertest-js/util");

function HTMLRenderer(config) {
  Renderer.call(this, config);
  var rows = window.rows = config.rows;
  this.rows = rows;
  this.columnHeads = config.columnHeads;
  var resultList = [];
  this.resultList = resultList;

  d3.select(".grid-footer").classed("hidden", false);
  d3.selectAll(".test:not(.active)")
    .classed("hidden", true);
  d3.selectAll(".toggle").classed("hidden", true);
  d3.selectAll(".test label").style("pointer-events", "none");
  d3.selectAll(".suite-hed").classed("hidden", true);