Download Free Trial
Table of contents


[starting from version: 2.3]

It is triggered before the creation of Toolbar. Use this event to override default Toolbar and customize it without changing flexmonster.toolbar.js. As an input beforetoolbarcreated gets toolbar object. Override existing tabs and set custom ones using toolbar.getTabs() function. Each tab object should have the following structure:

  • title – String. Label of the tab.
  • id – String. Id used in CSS styles.
  • handler – String. Name of the function that handles click on this tab.
  • args (optional) – Any. Argument to pass to handler.
  • menu (optional) – Array. Dropdown menu items.
  • mobile (optional) – Boolean. If false – doesn’t show on mobile devices.
  • ios (optional) – Boolean. If false – doesn’t show on iOS devices.
  • android (optional) – Boolean. If false – doesn’t show on Android devices.


Hide all default tabs and add a new one to load a CSV file:
    toolbar: true,
    beforetoolbarcreated: customizeToolbar

function customizeToolbar(toolbar) {
    // override tabs
    toolbar.getTabs = function() {
        var tabs = [];
        id: "fm-tab-connect",
        title: this.Labels.connect,
        handler: function() {
                dataSourceType: "csv", 
                filename: "" 
        return tabs;

Try the example on JSFiddle.