Flexmonster Software License Agreement (“Agreement”) has been significantly revised and is effective as of September 30, 2024.
The following modifications were made:
The modified version of Flexmonster Software License Agreement is available here.
Downloading, installing, and/or continuing to use Flexmonster Software after September 30, 2024, constitutes Licensee’s acceptance of the terms and conditions of the modified version of Flexmonster Software License 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 under License Model or Maintenance after the effective date of any modifications to Agreement, Licensee accepts and agrees to be bound by the terms and conditions of the modified Agreement.
The FlexmonsterReact.Pivot
component embeds Flexmonster into a React application.
To add an empty pivot table, specify the <FlexmonsterReact.Pivot>
tag without any props:
<FlexmonsterReact.Pivot/>
Learn more about integrations with React:
All the FlexmonsterReact.Pivot
props are equivalent to the parameters of the new Flexmonster() API call. Check out the full list of available props.
Note that FlexmonsterReact.Pivot
supports only Flexmonster-specific props. Any other props are not supported, including id
, className
, or style
.
Props can be passed as hardcoded values or as variables:
To pass a prop as a hardcoded value, enclose the value in single or double quotes:
<FlexmonsterReact.Pivot
report="https://cdn.flexmonster.com/reports/report.json"
/>
In this example, the prop value is a string, but number and boolean values can be passed similarly (see an example).
You can also pass objects and functions using curly braces (see an example).
To pass a prop as a variable, enclose the variable in curly braces:
<FlexmonsterReact.Pivot report={report} />
React lifecycle methods and the useEffect() hook are not synchronized with Flexmonster's lifecycle. However, you can get information about Flexmonster's state using its events.
To track the initialization of Flexmonster, use the ready or the reportcomplete event. Changes in Flexmonster's state (e.g., a report is changed) can be tracked via other Flexmonster events.
Learn more about using Flexmonster events in React.
The following example demonstrates how different FlexmonsterReact.Pivot
props can be specified:
<FlexmonsterReact.Pivot width="100%" height="500" toolbar="true" report="https://cdn.flexmonster.com/reports/report.json" customizeCell={customizeCellFunction} beforetoolbarcreated={toolbar => { toolbar.showShareReportTab = true; }} shareReportConnection={{ url: "https://olap.flexmonster.com:9500" }} />
Note Here is the full list of available props.