0.1.59 • Published 4 years ago

bs-react-trello v0.1.59

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

bs-react-trello

This is Bucklescript bindings for react-trello.

Install

yarn add bs-react-trello

Setup

Add bs-react-trello to bs-depenencies in your bsconfig.json!

{
  /* ... */
  "bs-dependencies": [
    "bs-react-trello"
  ],
  /* ... */
}

Example

let data = [|
  ReactTrello.Lane.t(
    ~id="title1",
    ~label="title1 label",
    ~addCardLink=React.string("title 1 addCardLink"),
    ~cards=[|
      ReactTrello.Card.t(
        ~id="t1 card1",
        ~title="t1 title1",
        ~description="t1 description",
        (),
      ),
      ReactTrello.Card.t(
        ~id="t2 card1",
        ~title="t2 title1",
        ~description="t2 description",
        (),
      ),
    |],
    (),
  ),
  ReactTrello.Lane.t(
    ~id="title2",
    ~label="title2 label",
    ~addCardLink=React.string("title 2 addCardLink"),
    ~cards=[||],
    (),
  ),
|];

[@react.component]
let make = () =>
  <div className="container"> <ReactTrello data={"lanes": data} /> </div>;
0.1.57

4 years ago

0.1.58

4 years ago

0.1.59

4 years ago

0.1.56

5 years ago

0.1.55

5 years ago

0.1.54

5 years ago

0.1.53

5 years ago

0.1.52

5 years ago

0.1.51

5 years ago

0.1.5

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago