From 2c963b4c5f8dfe7274037e1cb533210e30013ca1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josue=CC=81=20Us?= Date: Mon, 28 Aug 2017 11:56:50 -0600 Subject: [PATCH] Add missed function type for filterValue on TableHeaderColumn --- types/react-bootstrap-table/index.d.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/types/react-bootstrap-table/index.d.ts b/types/react-bootstrap-table/index.d.ts index 1b80e670fa..e670fa2464 100644 --- a/types/react-bootstrap-table/index.d.ts +++ b/types/react-bootstrap-table/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for react-bootstrap-table v2.6.0 // Project: https://github.com/AllenFang/react-bootstrap-table -// Definitions by: Frank Laub , Aleksander Lode +// Definitions by: Frank Laub , Aleksander Lode , Josué Us // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 @@ -581,6 +581,12 @@ export interface TableHeaderColumnProps extends Props { * Default: 1 */ colSpan?: number; + + /** + * Return the value you want to be filtered on that column. + * It's useful if your column data is an object. + */ + filterValue?: Function; } export interface Editable { type?: string;//edit type, avaiable value is textarea, select, checkbox