AllenFang / AllenFang/react-bootstrap-table

How to add a 'glyphicon glyphicon-chevron-up' icon on table header-react-bootstrap2-table

Aperta
#1,964 0 commenti 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

Hello,

I have tried below code to add icon on react-bootstrap2-table.
but its not working

columns: [
{
dataField: 'id',
text: 'Product ID',
sort: true
},
{
dataField: 'name',
text: 'Product Name',
sort: true,
formatter: rankFormatter,
formatExtraData: {
up: 'glyphicon glyphicon-chevron-up',
down: 'glyphicon glyphicon-chevron-down'
}
},
{
dataField: 'price',
text: 'Product Price'
}
]

//Below is the function
function rankFormatter(cell, row, rowIndex, formatExtraData) {
return (

);
}

its overlapping my table data.

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.