File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed
react-bootstrap-table2/src Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -594,6 +594,7 @@ This prop also accept a function:
594594
595595* ` column `
596596* ` columnIndex `
597+ * ` props ` : It's an object and contain ` text ` property only.
597598
598599## <a name =' footerClasses ' >column.footerClasses - [ String | Function] </a >
599600It's similar to [ ` column.classes ` ] ( #classes ) , ` footerClasses ` is available to have customized class on table footer column:
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import { productsGenerator } from 'utils/common';
77
88const products = productsGenerator ( ) ;
99
10- function priceFormatter ( column , colIndex ) {
10+ function priceFormatter ( column , colIndex , { text } ) {
1111 return (
1212 < h5 >
1313 < strong > $$ { column . text } $$</ strong >
@@ -37,7 +37,7 @@ const columns = [
3737const sourceCode = `\
3838import BootstrapTable from 'react-bootstrap-table-next';
3939
40- function priceFormatter(column, colIndex) {
40+ function priceFormatter(column, colIndex, { text } ) {
4141 return (
4242 <h5><strong>$$ { column.text } $$</strong></h5>
4343 );
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ class FooterCell extends eventDelegater(React.Component) {
5454 if ( cellClasses ) cellAttrs . className = cs ( cellAttrs . className , cellClasses ) ;
5555 if ( ! _ . isEmptyObject ( cellStyle ) ) cellAttrs . style = cellStyle ;
5656
57- const children = footerFormatter ? footerFormatter ( column , index ) : text ;
57+ const children = footerFormatter ? footerFormatter ( column , index , { text } ) : text ;
5858
5959 return React . createElement ( 'th' , cellAttrs , children ) ;
6060 }
You can’t perform that action at this time.
0 commit comments