JSFiddle - React, Tailwind, and code Playground
by Flexmonster Pivot Table
HTML
<script src="https://cdn.flexmonster.com/flexmonster.js"></script>
<button onclick="updateData()">Update data</button>
<div id="pivot-container"></div>
JavaScript
let pivot = new Flexmonster({
container: "pivot-container",
componentFolder: "https://cdn.flexmonster.com/",
report: {
dataSource: {
type: "json",
filename: "data/data.json",
},
}
});
function updateData() {
flexmonster.updateData({
type: "json",
filename: "data/data.json?table=myTable&"+Date.now(),
});
}