bv-react-data-report
ReactJS component to preview data and export it as PDF file.
Last updated 7 months ago by blasvicco .
GPL-3.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install bv-react-data-report 
SYNC missed versions from official npm registry.

bv-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
yarn
yarn 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 'bv-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 bv-react-data-report

Or yarn

yarn add bv-react-data-report

Current Tags

  • 1.1.2                                ...           latest (7 months ago)

3 Versions

  • 1.1.2                                ...           7 months ago
  • 1.1.0                                ...           2 years ago
  • 1.0.8                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 3
Dependencies (17)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |