2.0.0 ā€¢ Published 5 years ago

@rolltrax/bs-react-table v2.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

bs-react-table

Bucklescript/Reason bindings for react-table

Info

šŸš§ This is a WIP library. Most of the basic features are implemented, but some are still left not working. If you would like to help with the development effort, feel free to submit a pull request šŸš§

This library provides Bucklescript bindings for react-table

Installation

npm install --save bs-react-table

Then add it to your bs-dependencies in your bsconfig.json:

{
  ...
  "bs-dev-dependencies": ["bs-react-table"]
}

And then add this to your header in your html template :

<link rel="stylesheet" href="https://unpkg.com/react-table@latest/react-table.css">

Usage

Usage is very similar to the original package

let columns = [|
  {"Header": "Name", "accessor": "name"},
  {"Header": "Age", "accessor": "age"},
|];

let data = [|
  {"name": "thomas", "age": "25"},
  {"name": "aude", "age": "23"},
  {"name": "damien", "age": "32"},
|];

let make = _children => {
  ...component,
  render: self => <ReactTable.ReactTable columns data label=(Some("test")) />,
};
2.0.0

5 years ago

0.1.11

6 years ago

0.1.10

6 years ago

0.1.9

6 years ago

0.1.8

6 years ago

0.1.7

6 years ago

0.1.6

6 years ago

0.1.5

6 years ago