JSFiddle - React, Tailwind, and code Playground
by Flexmonster Pivot Table
HTML
<script src="https://cdn.flexmonster.com/flexmonster.js"></script>
<div id="pivotContainer"></div>
JavaScript
var pivot = new Flexmonster({
container: "pivotContainer",
componentFolder: "https://cdn.flexmonster.com/",
toolbar: true,
report: {
dataSource: {
data: [{ "hiddenHeader": { "type": "hidden" } }]
}
}
});
pivot.on('reportcomplete', function() {
pivot.off("reportcomplete");
if (pivot.getAllHierarchies().length == 0)
pivot.setReport(pivot.getReport().dataSource = {});
});