From f72b298cc5ff5d8ae9ebd8ed3e8119f7a6ff1cec Mon Sep 17 00:00:00 2001 From: Maarten Rijke Date: Mon, 9 Oct 2017 23:41:10 +0200 Subject: [PATCH] [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. --- types/react-bootstrap-table/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/react-bootstrap-table/index.d.ts b/types/react-bootstrap-table/index.d.ts index 57c8d02218..159470878a 100644 --- a/types/react-bootstrap-table/index.d.ts +++ b/types/react-bootstrap-table/index.d.ts @@ -177,7 +177,7 @@ export interface BootstrapTableProps extends Props { /** * 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 */