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>
CSS
.fm-text-display {
white-space: pre-wrap !important;
position: relative !important;
left: auto !important;
right: auto !important;
}
.fm-list-wrap-all .fm-text-display {
width: calc(100% - 50px)
}
.fm-draggable{
height: auto !important;
}
JavaScript
let pivot = new Flexmonster({
container: "pivot-container",
componentFolder: "https://cdn.flexmonster.com/",
toolbar: true,
reportcomplete: () => {
flexmonster.openFieldsList()
},
report: {
dataSource: {
mapping: {
"Sales Category Name / Retail Category Name Approved by ABC Inc": {
folder: "Props"
},
"Color": {
folder: "Props"
}
},
data: [{
"Sales Category Name / Retail Category Name Approved by ABC Inc": "Accessories",
"Color": "red",
"Quantity": 22
},{
"Sales Category Name / Retail Category Name Approved by ABC Inc": "Shoes",
"Color": "black",
"Quantity": 7
}]
}
}
});