【发布时间】:2020-10-20 03:55:49
【问题描述】:
我需要有关将格式化数据包含到搜索功能中的帮助。由于某种原因,格式化的链接不包含在搜索中
function docFormatter(cell, row, rowIndex) {
return (
<a href={${row.doc.doclink}}>
{row.doc.docname}
);
}
const columns = [
{ dataField: "sno", text: "S.No" },
{
dataField: "doc",
text: "Document Name",
formatter: docFormatter,
filterValue: docFormatter,
},
];
我有一个客户格式化程序,它返回一个带有文本的锚标记。搜索无法解决此问题。
..., {
dataField: 'type',
text: 'Job Type',
formatter: (cell, row) => types[cell],
filterValue: (cell, row) => types[cell] // we will search the value after filterValue called
}
我不明白如何通过引用这个来实现它。请帮我解决这个问题。谢谢
【问题讨论】:
标签: reactjs bootstrap-table react-bootstrap-table