From e5c64dbf9ca6d7e2cf2311b2d98b0cd05e5f3271 Mon Sep 17 00:00:00 2001 From: Oscar Andersson Date: Tue, 2 Jan 2018 21:41:35 +0100 Subject: [PATCH] Update trStyle (#22505) * Update index.d.ts * Update index.d.ts --- types/react-bootstrap-table/index.d.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/types/react-bootstrap-table/index.d.ts b/types/react-bootstrap-table/index.d.ts index 9bc4fa1948..d7618e4db0 100644 --- a/types/react-bootstrap-table/index.d.ts +++ b/types/react-bootstrap-table/index.d.ts @@ -1,9 +1,10 @@ -// Type definitions for react-bootstrap-table 4.2 +// Type definitions for react-bootstrap-table 4.3 // Project: https://github.com/AllenFang/react-bootstrap-table // Definitions by: Frank Laub , // Aleksander Lode , // Josué Us // Janeene Beeforth +// Oscar Andersson // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 @@ -376,9 +377,9 @@ export interface BootstrapTableProps extends Props { search?: boolean; }; /** - * Set a style to be used for the table rows. + * Set a style to be used for the table rows. Example: https://github.com/AllenFang/react-bootstrap-table/blob/master/examples/js/style/tr-style-table.js */ - trStyle?: CSSProperties; + trStyle?: CSSProperties | ((rowData: any, rowIndex: number) => CSSProperties); /** * Disable the automatic tabIndex for navigating between cells. This can be useful if you have a page with multiple * tables on the page, to stop the tab moving to another table. Default is false.