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://cdn.flexmonster.com/flexmonster.js"></script>
<div id="pivotContainer"></div>
CSS
.fm-ui-popup, .fm-popup {
position: fixed !important;
left: 50vw !important;
top: 50vw !important;
transform: translate(-50%, -50%);
}
#fm-grid-title {
text-align: left !important;
}
JavaScript
var pivot = new Flexmonster({
container: "pivotContainer",
componentFolder: "https://cdn.flexmonster.com/",
toolbar: true,
width: "300%",
report: {
dataSource: {
type: "microsoft analysis services",
proxyUrl: "https://olap.flexmonster.com/olap/msmdpump.dll",
catalog: "Adventure Works DW Standard Edition",
cube: "Adventure Works"
},
options: {
grid: {
title: "Title"
}
}
},
beforetoolbarcreated: customizeToolbarFunction
});
function customizeToolbarFunction(toolbar) {
var tabs = toolbar.getTabs();
toolbar.getTabs = function() {
for (let tab of tabs)
tab.rightGroup = false;
return tabs;
}
}