Flexmonster Software License Agreement (“Agreement”) has been revised and is effective as of October 15, 2026.
The following modifications were made:
Downloading, installing, and/or continuing to use Flexmonster Software after October 15, 2026, constitutes Licensee’s acceptance of the terms and conditions of the modified version of Agreement. If Licensee does not agree to any of these terms and conditions, they must cease using Flexmonster Software and must not download, install, use, access, or continue to access Flexmonster Software. By continuing to use Flexmonster Software or renewing the license or maintenance after the effective date of these modifications to Agreement, Licensee accepts and agrees to be bound by the terms and conditions of the modified Agreement.
This guide describes how to customize the Toolbar in Flexmonster.
The Toolbar is a collection of the most commonly used Flexmonster features (e.g., connect to a data source, open a report, save a report). Here is how the Toolbar looks by default:

To enable the Toolbar, set the toolbar parameter to true when calling the new Flexmonster() constructor:
const pivot = new Flexmonster({
container: "pivotContainer",
toolbar: true
}); Note To get a reference to the Toolbar after Flexmonster is initialized, use the toolbar property of the component’s instance
Live example.
The Toolbar can be customized using the beforetoolbarcreated event. Inside its handler, you can get all tabs using the toolbar.getTabs() method. It returns an array of TabObjects that describe Toolbar tabs. Modify this array to add, remove, and customize tabs and buttons.
This guide shows how to remove and add a tab. For all examples of the customization, see the Examples page.
Step 1. Subscribe to the beforetoolbarcreated event and assign an event handler (e.g., customizeToolbar).
Step 2. Inside the handler, get an array of all tabs using the toolbar.getTabs() method.
Step 3. Filter the necessary tab from the array by the tab's id.
The following example will remove the Connect () tab:
const pivot = new Flexmonster({
container: "pivotContainer",
toolbar: true,
beforetoolbarcreated: customizeToolbar
});
function customizeToolbar(toolbar) {
// Get all tabs
let tabs = toolbar.getTabs();
toolbar.getTabs = function () {
// Remove the Connect tab using its id
tabs = tabs.filter(tab => tab.id != "fm-tab-connect");
return tabs;
}
} Step 1. Subscribe to the beforetoolbarcreated event and assign an event handler (e.g., customizeToolbar).
Step 2. Inside the handler, get an array of all tabs using the toolbar.getTabs() method.
Step 3. Insert a TabObject into the array to add a new tab:
const pivot = new Flexmonster({
container: "pivotContainer",
toolbar: true,
beforetoolbarcreated: customizeToolbar
});
function customizeToolbar(toolbar) {
// Get all tabs
let tabs = toolbar.getTabs();
toolbar.getTabs = function () {
// Add a new tab
tabs.unshift({
// An attribute that is used for CSS styling
id: "fm-tab-newtab",
// The tab’s label
title: "New Tab",
// A function that handles clicks on this tab
handler: newTabHandler,
// An HTML element with a tab icon
// You can choose an icon defined in flexmonster.toolbar.js
icon: this.icons.open
});
return tabs;
}
}
function newTabHandler() {
// Add new functionality
}Step 1. Subscribe to the beforetoolbarcreated event and assign an event handler (e.g., customizeToolbar).
Step 2. Inside the handler, get an array of all tabs using the toolbar.getTabs() method.
Step 3. Override the handler property of the necessary tab to add the needed functionality.
Check out an example of customizing the export to CSV:
const pivot = new Flexmonster({
container: "pivotContainer",
toolbar: true,
beforetoolbarcreated: customizeToolbar,
});
function customizeToolbar(toolbar) {
// Get all tabs
let tabs = toolbar.getTabs();
toolbar.getTabs = function() {
// Find the Export tab
let exportTab = tabs.find(tab => tab.id == "fm-tab-export");
// Find the Export to CSV tab
let exportToCSVTab = exportTab.menu.find(tab => tab.id == "fm-tab-export-csv");
// Override the Export to CSV tab’s functionality
exportToCSVTab.handler = () => {
const fieldSeparator = document.getElementById('CSVFileSeparator').value || ',';
this.pivot.exportTo("csv", {
fieldSeparator: fieldSeparator
})
}
return tabs;
}
}You can adjust configs available through the Toolbar pop-up windows. See how to:
For further customization, we recommend exploring the existing code for the Toolbar. In the project with Flexmonster, open the flexmonster/toolbar/flexmonster.toolbar.js file and find the function expression that starts with the following line of code:
FlexmonsterToolbar.prototype.getTabs = function() {Examine this function to understand how the Toolbar works and how to customize it.
If necessary, see how to get Flexmonster.
In addition, you can change the appearance of the Toolbar (e.g., colors or font styles) by applying a CSS theme.
Can't find your answer here?
Visit the FAQ page
Flexmonster Pivot Table & Charts is a JavaScript pivot table component for adding interactive reporting and data analysis to web applications. Users can summarize, filter, sort, and explore data in pivot tables and charts, drill into results, and export reports.
Flexmonster works in plain JavaScript and TypeScript projects. It also integrates with React, Next.js, Angular, Vue, Blazor, and other technologies. See all integration options.
Flexmonster supports JSON and CSV files, SQL databases, MongoDB, Elasticsearch, and Microsoft Analysis Services (SSAS). You can also connect other data sources through your own backend. See supported data sources.
Flexmonster offers three licensing models: a Single Corporate License for internal use by one company (from $799/year), a SaaS License for embedding Flexmonster into a multi-tenant platform (from $2,499/year), and an OEM License for vendors distributing Flexmonster inside a product installed at other businesses (from $1,499/year for a 3-license bundle). Every license allows an unlimited number of developers and covers development, staging, and production environments at no extra charge.
SaaS projects can also use the free SaaS Entry license during development. Learn more on the pricing page.
Yes. Flexmonster offers a 30-day free trial that lets you evaluate all its features. No credit card is required. The trial version has a watermark.
To get started with Flexmonster, follow our integration guide.