JSFiddle - React, Tailwind, and code Playground
by Flexmonster Pivot Table
HTML
<link rel="stylesheet" href="https://s3.amazonaws.com/flexmonster/2.3/demo.css">
<script src="https://code.jquery.com/jquery-2.2.4.min.js"></script>
<script src="https://cdn.flexmonster.com/flexmonster.js"></script>
<button onclick="more()">Expand</button>
<button onclick="less()">Narrow down</button>
<div style="width: 70%" id="wrapper">
<div id="pivot-container"></div>
</div>
JavaScript
var pivot = new Flexmonster({
container: "pivot-container",
componentFolder: "https://cdn.flexmonster.com/",
width: "100%",
height: 430,
toolbar: true,
report: {
dataSource: {
filename: "data/data.csv"
}
}
});
function more() {
$('#wrapper').css({
width: "100%"
})
}
function less() {
$('#wrapper').css({
width: "50%"
})
}