[react-bootstrap-table] csvFileName also accepts function returning string (#20352)

The csvFileName prop on the BootstrapTable component also accepts a function that returns a string.
This commit is contained in:
Maarten Rijke
2017-10-09 14:41:10 -07:00
committed by Wesley Wigham
parent 4e39a2f43d
commit f72b298cc5
+1 -1
View File
@@ -177,7 +177,7 @@ export interface BootstrapTableProps extends Props<BootstrapTable> {
/**
* Set CSV filename (e.g. items.csv). Default is spreadsheet.csv
*/
csvFileName?: string;
csvFileName?: () => string | string;
/**
* Enable row selection on table. selectRow accept an object which have the following properties
*/