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.