Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Show HN: Griddle 1.0 – A customizable datagrid component for React. Parent comment
<Griddle data={fakeData}> <RowDefinition> <ColumnDefinition id="id" /> <ColumnDefinition id="name" /> <ColumnDefinition id="somethingTotallyMadeUp" title="New value" customComponent={connectedCustomComponent} /> </RowDefinition> </Griddle>
From there, you can basically render whatever you want from the made-up column (but have access to everything in the row to base it on). See the following for connecting a custom component to Griddle's state management:
https://github.com/GriddleGriddle/Griddle/blob/master/storie...
and
There are no comments on this comment yet.
<Griddle data={fakeData}> <RowDefinition> <ColumnDefinition id="id" /> <ColumnDefinition id="name" /> <ColumnDefinition id="somethingTotallyMadeUp" title="New value" customComponent={connectedCustomComponent} /> </RowDefinition> </Griddle>
From there, you can basically render whatever you want from the made-up column (but have access to everything in the row to base it on). See the following for connecting a custom component to Griddle's state management:
https://github.com/GriddleGriddle/Griddle/blob/master/storie...
and
https://github.com/GriddleGriddle/Griddle/blob/master/storie...