AllenFang / AllenFang/react-bootstrap-table

Cannot read property 'sortFunc' of undefined - when using map function to generate TableHeaderColumn

Aperta
#2,094 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
JavaScript
Stelle
2.2k
Fork
761
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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
Status
Created
User Name
Tenant Name
Email
Phone
Topic
`

This code generates the 'sortFunc' undefined error:
`
var listcolhdrs = this.state.tablehdr.map((column) => {
return (

{column[2].label}

)});
return (




{listcolhdrs}



); `

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.