File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
samples/react/ReactGrid/ReactApp/components Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,9 @@ import{fakeData } from '../data/fakeData.js'
55import { columnMeta } from '../data/columnMeta.jsx' ;
66const resultsPerPage = 10 ;
77
8- const fakeDataWithAction = fakeData . map ( data => Object . assign ( data , { actions : '' } ) ) ;
8+ // Griddle requires each row to have a property matching each column, even if you're not displaying
9+ // any data from the row in that column
10+ fakeData . forEach ( row => { row . actions = '' ; } ) ;
911
1012export class PeopleGrid extends React . Component {
1113render ( ) {
@@ -14,7 +16,7 @@ export class PeopleGrid extends React.Component{
1416< div >
1517< h1 > People</ h1 >
1618< div id = "table-area" >
17- < Griddle results = { fakeDataWithAction }
19+ < Griddle results = { fakeData }
1820columns = { columnMeta . map ( x => x . columnName ) }
1921columnMetadata = { columnMeta }
2022resultsPerPage = { resultsPerPage }
You can’t perform that action at this time.
0 commit comments