JSFiddle - React, Tailwind, and code Playground

by Flexmonster Pivot Table

HTML

<script src="https://cdn.flexmonster.com/flexmonster.js"></script>

<div id="pivot-container"></div>

CSS

.link {
  text-decoration: underline !important;
  cursor: pointer;
  color: #457dff !important;
}

JavaScript

var jsonData = [{
	    billDate: {
	      type: "date string"
	    },
	    userName: {
	      type: "string"
	    },
	    entryId: {
	      type: "id"
	    },
	    entryProp: {
	      type: "property",
	      hierarchy: "userName"
	    }
	  },
	  {
	    billDate: "2020-02-05",
	    userName: 'user1',
	    entryId: 'userId1&&param1',
	    entryProp: 'userId1&&param1'
	  },
	  {
	    billDate: "2019-10-15",
	    userName: 'user2',
	    entryId: 'userId2&&param2',
	    entryProp: 'userId2&&param2'
	  },
	  {
	    billDate: "2015-12-22",
	    userName: 'user3',
	    entryId: 'userId3&&param3',
	    entryProp: 'userId3&&param3'
	  },
	  {
	    billDate: "2019-11-09",
	    userName: 'user1',
	    entryId: 'userId4&&param1',
	    entryProp: 'userId4&&param1'
	  }
	];

	var pivot = new Flexmonster({
	  container: "pivot-container",
	  customizeCell: customizeCellFunction,
	  componentFolder: "https://cdn.flexmonster.com/",
	  toolbar: true,
	  report: {
	    dataSource: {
	      data: jsonData,
	      dataSourceType: "json"
	    },
	    slice: {
	      reportFilters: [],
	      rows: [{
	        uniqueName: "userName"
	      }],
	      columns: [{
	        uniqueName: "[Measures]"
	      }],
	      measures: [{
	        uniqueName: "billDate"
	      }]
	    }
	  }
	});

	function customizeCellFunction(cell, data) {

	  let resolveLinkProperties = function(data, paramSrc) {
	    let link = 'wwww.somelink.com/${0}?param=${1}';
	    let caption = data.label;
	    let parts = (function() {
	      if (typeof(paramSrc) == "string") {
	        return paramSrc.split('&&')
	      } else {
	        return paramSrc[0].split('&&')
	      }
	    })();
	    for (let i = 0; i < parts.length; i++) {
	      link = link.replace('${' + i + '}', parts[i]);
	    }
	    return {
	      caption: caption,
	      link: link
	    };
	  };

	  let hl;

	  //passing different params to resolveLinkProperties depending on the cell type & context
	  if (data.hierarchy && data.hierarchy.uniqueName ==...