1.7.23 • Published 1 year ago

ocr-react-datatable v1.7.23

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

OCR-React-Datatable

OCR-React-Datatable is a React component that renders a sortable and paginated table. It can be customized with the headers and data that you provide.

Installation

You can install the package using npm:

npm install ocr-react-datatable

Usage

import ReactDataTable from 'ocr-react-datatable';

const data = [
  [1, 'John', 'Doe'],
  [2, 'Jane', 'Doe'],
  [3, 'Bob', 'Smith'],
  [4, 'Alice', 'Johnson'],
];

const headers = [
  { name: 'ID', type: 'number', isActive: false, sens: 1 },
  { name: 'First Name', type: 'string', isActive: false, sens: 1 },
  { name: 'Last Name', type: 'string', isActive: false, sens: 1 },
];

function App() {
  return (
    <div>
      <h1>OCR React Datatable</h1>
      <ReactDataTable data={data} headers={headers} />
    </div>
  );
}

export default App;

API

ReactDataTable

The ReactDataTable component takes in the following props:

data

Type: Array

An array of arrays containing the data to be displayed in the table.

headers

Type: Array

An array of objects representing the headers of the table. Each object should have a name, type, isActive, and sens property.

name: The name of the header type: The type of data in the column. Currently supported types are number, string, and boolean. isActive: Whether the column is currently being sorted by. sens: The direction to sort the column by. 1 for ascending and -1 for descending. debug Type: Boolean

A flag indicating whether to output debug information to the console.

Contributing

We welcome contributions to OCR React Datatable! To get started, clone the repository and install the dependencies:

git clone https://github.com/your-username/ocr-react-datatable.git
cd ocr-react-datatable
npm install

Then, you can run the tests with:

npm test

License

OCR React Datatable is licensed under the MIT License.

1.2.0

1 year ago

1.2.4

1 year ago

1.2.2

1 year ago

1.2.1

1 year ago

1.2.3-solei1

1 year ago

1.7.10

1 year ago

1.7.11

1 year ago

1.7.12

1 year ago

1.3.5-beta3

1 year ago

1.7.13

1 year ago

1.7.14

1 year ago

1.7.15

1 year ago

1.7.16

1 year ago

1.7.17

1 year ago

1.7.18

1 year ago

1.7.19

1 year ago

1.7.20

1 year ago

1.7.9

1 year ago

1.7.21

1 year ago

1.7.8

1 year ago

1.7.22

1 year ago

1.7.7

1 year ago

1.7.23

1 year ago

1.7.6

1 year ago

1.7.5

1 year ago

1.7.4

1 year ago

1.7.3

1 year ago

1.7.2

1 year ago

1.3.6

1 year ago

1.2.3-soleil

1 year ago

1.7.1

1 year ago

1.7.0

1 year ago

1.3.4

1 year ago

1.3.3

1 year ago

1.3.2

1 year ago

1.3.1

1 year ago

1.3.0

1 year ago

1.6.64

1 year ago

1.1.16

1 year ago

1.1.19

1 year ago

1.1.18

1 year ago

1.1.17

1 year ago

1.1.23

1 year ago

1.1.22

1 year ago

1.1.21

1 year ago

1.1.20

1 year ago

1.3.4-beta1

1 year ago

1.3.4-beta2

1 year ago

1.1.24

1 year ago

1.1.15

1 year ago

1.1.13

1 year ago

1.1.12

1 year ago

1.1.11

1 year ago

1.1.10

1 year ago

1.1.9

1 year ago

1.1.8

1 year ago

1.1.7

1 year ago

1.1.6

1 year ago

1.1.5

1 year ago

1.1.4

1 year ago

1.1.3

1 year ago

1.1.2

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago