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>
JavaScript
let pivot = new Flexmonster({
container: "#pivot-container",
componentFolder: "https://cdn.flexmonster.com/",
toolbar: true,
report: {
dataSource: {
data: getData(),
mapping: {
"pktest/t2/2": {
type: "string",
},
"value": {
type: "number"
},
}
},
options: {
grid: {
type: "flat"
}
}
}
});
function getData() {
return [
{
"pktest/t2/2": "2 ±1",
"value": 200
}
]
}