Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
react-flexmonster
Advanced tools
This repository holds the source code for using Flexmonster Pivot in React applications.
If you don’t have React app, you can create it by running in the console:
npx create-react-app my-app
cd my-app
Add Flexmonster React module by running in the console:
npm i react-flexmonster --save
Include FlexmonsterReact
into App.js
:
import * as FlexmonsterReact from 'react-flexmonster';
Insert a pivot table into App.js
:
class App extends Component {
render() {
return (
<div className="App">
<FlexmonsterReact.Pivot toolbar={true}
componentFolder="https://cdn.flexmonster.com/" width="100%"
report="https://cdn.flexmonster.com/reports/report.json"/>
</div>
);
}
}
Run your application from the console:
npm start
To see the result open your browser on http://localhost:4200/
.
Available attributes for FlexmonsterReact.Pivot
:
componentFolder
– URL of the component’s folder which contains all necessary files. Also, it is used as a base URL for report files, localization files, styles and images. The default value for componentFolder
is flexmonster/
.width
– width of the component on the page (pixels or percent). The default value for width is 100%.height
– height of the component on the page (pixels or percent). The default value for height is 500
.report
– property to set a report. It can be inline Report Object or URL to report JSON.toolbar
– parameter to embed the toolbar or not. Default value is false
– without the toolbar.customizeCell
– function that allows customizing of separate cells. Have a look at customizeCell definition and examples.customizeContextMenu
– function that allows customizing context menu. Have a look at customizeContextMenu definition and examples.licenseKey
– the license key.Here is an example how such attributes can be specified:
<FlexmonsterReact.Pivot toolbar={true}
componentFolder="https://cdn.flexmonster.com/"
width="100%"
report="https://cdn.flexmonster.com/reports/report.json"
/>
Here is Flexmonster licensing page. We have free 30 day trial!
Flexmonster React module is released as a MIT-licensed (free and open-source) add-on to Flexmonster Pivot.
Please share your feedback or ask questions via Flexmonster Forum.
FAQs
React wrapper for Flexmonster Pivot Table and Charts
The npm package react-flexmonster receives a total of 1,480 weekly downloads. As such, react-flexmonster popularity was classified as popular.
We found that react-flexmonster demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.