Flexmonster Software License Agreement (“Agreement”) has been revised and is effective as of January 8, 2025.
The following modifications were made:
The modified version of Agreement is available here.
Downloading, installing, and/or continuing to use Flexmonster Software after January 8, 2025, 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 shows how to specify configurations that will be common for all reports. You can configure the following:
To apply global configs, use the GlobalObject, which can be considered as a global parent report:
const pivot = new Flexmonster({
container: "pivot-container",
global: {
// Global configs
}
// Other configs
});
To specify a data source for all reports, configure the global.dataSource property:
global: { dataSource: { filename: "https://cdn.flexmonster.com/data/data.csv" } }
For more info about available data source configurations, see the DataSourceObject.
To specify options for all reports, configure the global.options property.
The following example demonstrates how to specify the readOnly option for all reports:
global: { options: { readOnly: true } }
In the next example, we apply date and time formatting for all reports using the datePattern option:
global: { options: { datePattern: "'Date: 'MM/dd/yy" } }
Read more about available options in the Options guide.
To specify a localization for all reports, configure the global.localization property:
global: {
localization: "https://cdn.flexmonster.com/loc/es.json"
}
To learn more about localization, read the Localizing the component guide.
If a configuration is set both in the global settings and inside the report, the report-specific value will override the global one. For example, check out the following Flexmonster configuration:
const pivot = new Flexmonster({
container: "pivot-container",
global: {
options: {
readOnly: true
},
},
report: {
dataSource: {
filename: "data/data.json"
},
options: {
readOnly: false
}
}
});
As a result, options.readOnly is set to false
, and the report remains interactive.