This package has been deprecated

Author message:

WARNING: This project has been renamed to bv-react-data-report. Install using npm install bv-react-data-report instead.

react-data-report

1.0.7 • Public • Published

react-data-report

This is a ReactJS Component that generate a preview of data to be exported 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
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}/>

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 react-data-report

Dependents (0)

Package Sidebar

Install

npm i react-data-report

Weekly Downloads

4

Version

1.0.7

License

GPL-3.0

Last publish

Collaborators

  • blasvicco