Open smelehy opened 4 years ago
I can't seem to figure this out. Looked at all the documents and support blogs. Hard coding TableHeader Column works, doing the same thing with map function does not work. Sorry if the code is not readable - I'm new to submitting these.
This code works: `ID
<TableHeaderColumn width='13%' dataField='created' dataSort {false}>Created
`
This code generates the 'sortFunc' undefined error: ` var listcolhdrs = this.state.tablehdr.map((column) => { return ( <TableHeaderColumn key={column[1]} dataField={column[2].fieldname} isKey={column[2].iskey}> {column[2].label} )}); return (
</div> ); `
Can you provide any examples where the map function is used to generate the TableHeaderColumn? That might help.
I can't seem to figure this out. Looked at all the documents and support blogs. Hard coding TableHeader Column works, doing the same thing with map function does not work. Sorry if the code is not readable - I'm new to submitting these.
This code works: `ID
<TableHeaderColumn width='13%' dataField='created' dataSort {false}>Created
`
This code generates the 'sortFunc' undefined error: ` var listcolhdrs = this.state.tablehdr.map((column) => { return ( <TableHeaderColumn key={column[1]} dataField={column[2].fieldname} isKey={column[2].iskey}> {column[2].label} )}); return (
Can you provide any examples where the map function is used to generate the TableHeaderColumn? That might help.