AllenFang / AllenFang/react-bootstrap-table

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

Open
#1,964 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2.2k
Forks
761
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.