yarn add https://github.com/capsule8/gridiculousHello World:
import * as React from 'react';
import { Grid } from 'gridiculous';
class Example extends React.Component {
render() {
return <Grid data={[]} columns={[]} />;
}
}Add Some Data:
<Grid
data={[{foo:"bar"}]}
rowKey="name"
columns={[{name:"Foo", key: "foo"}]} />Customize the presentation of data:
<Grid
columns={[
{
name:"Foo",
key: "foo",
renderer: ({value}) => <strong>{value}</strong>
}
]}
// ...Add interactions:
<Grid
onRowClick={(event, rowData) => {
console.log(rowData)
}}
// ...Lib:
yarn
yarn link
yarn startExample:
cd example
yarn
yarn link gridiculous
yarn start