Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@weknow/react-data-report

Package Overview
Dependencies
Maintainers
3
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@weknow/react-data-report

ReactJS component to preview data and export it as PDF file.

  • 1.1.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
5
increased by66.67%
Maintainers
3
Weekly downloads
 
Created
Source

react-data-report

ReactJS component to preview data and export it as PDF file.

The user will be able to choose the items per page, the page format (portrait / landscape) and the page size (a4 / letter / legal).

Columns in table can be easily hide using style. Please refer to App.css to see an example.

Example:

Please refer to the test file to see how works.

To run the test:

  1. Clone the repository
  2. Execute in console:
cd test
npm install
cd node_modules
ln -s ../../ react-data-report
cd ..
npm start

General Usage

As you will be able to see in test in order to use the component we need to importe it as:

import Report from 'react-data-report';

Then, in the render method we can just call it like:

<Report data={example} opening={(<h1>This is an opening content.</h1>)}/>

Where data is an array of objects as you can see in this example file.

Installation

Install this component is easy, just use npm as:

npm install @weknow/react-data-report

Keywords

FAQs

Package last updated on 16 Jul 2018

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc