Showing or hiding the Toolbar
Customizing the Toolbar
by Flexmonster Pivot Table
HTML
<script src="https://cdn.flexmonster.com/flexmonster.js"></script>
<button onclick="toggleToolbar()">Toggle the Toolbar</button>
<div id="pivot-container"></div>
CSS
@import url(https://cdn.flexmonster.com/assets/jsfiddle-styles.css);
JavaScript
let pivot = new Flexmonster({
container: "pivot-container",
componentFolder: "https://cdn.flexmonster.com/",
toolbar: true,
report: {
dataSource: {
filename: "data/data.csv"
}
}
});
function toggleToolbar() {
pivot.toolbar.toolbarWrapper.style.display =
pivot.toolbar.toolbarWrapper.style.display == "" ? "none" : "";
}