Changing Toolbar labels using localization

Customizing the Toolbar

by Flexmonster Pivot Table

HTML

<script src="https://cdn.flexmonster.com/flexmonster.js"></script>

<div>
  <h2>How to change Toolbar labels using localization</h2>
  <p>
    You can set custom labels for Toolbar tabs using the
    <code>localization</code> object.
  </p>
  <p>
    In this example, we've changed the <strong>Fields</strong> label to
    <strong>Field List</strong> (lines 6-12 in the JavaScript box). This label
    will be used for all reports.
  </p>
  <p>
    <a
      href="https://www.flexmonster.com/doc/customizing-toolbar/"
      target="_blank"
      >Visit our docs to learn more about customizing the Toolbar</a
    >.
  </p>
</div>

<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: "https://cdn.flexmonster.com/reports/report.json",
  global: {
    localization: {
      toolbar: {
        fields: "Field List"
      }
    }
  }
});