AllenFang / AllenFang/react-bootstrap-table

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

Đang mở
#1,964 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
JavaScript
Star
2.2k
Fork
761
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.