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.
The <Flexmonster>
component embeds Flexmonster into a Svelte application.
To add an empty pivot table, specify the <Flexmonster>
tag without any props and attributes:
<Flexmonster />
Learn more about integration with Svelte.
All the <Flexmonster>
props are equivalent to the parameters of the new Flexmonster() API call. Check out the full list of available props.
Note that <Flexmonster>
supports only Flexmonster-specific props. Any other props are not supported, including id
, class
, 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:
<Flexmonster
report="https://cdn.flexmonster.com/reports/report.json"
/>
In this example, the prop value is passed as a string. For booleans, use curly braces.
<Flexmonster
report={report}
/>
The specified variable (in our case, the report
) should be defined in the <script>
section of the file.
Learn how to pass values to the component.
Svelte lifecycle hooks 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 Svelte.
The following example demonstrates how different <Flexmonster>
props can be specified:
<Flexmonster
bind:pivot
toolbar={true}
report="https://cdn.flexmonster.com/reports/report.json"
height="600"
beforetoolbarcreated={toolbar => {
toolbar.showShareReportTab = true;
}}
customizeCell={customizeCellFunction}
/>
Here is the full list of available props.