From 4c9b44ab4878f0a9202e2a5e043f9f87cfa3a72e Mon Sep 17 00:00:00 2001 From: Mario Viens Date: Mon, 28 May 2018 00:11:35 -0700 Subject: [PATCH] documentation formatting fix (#986) --- src/hoc/README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/hoc/README.md b/src/hoc/README.md index 954fc8e..a68b6bc 100644 --- a/src/hoc/README.md +++ b/src/hoc/README.md @@ -71,7 +71,7 @@ You include the HOC in the same manner as you would for the treeTableHOC but the **Note:** The select field defaults to the accessor `_id` property in order to render the select field for that particular row. If your objects have different unique ID fields, make sure to tell React Table that by passing it the `keyField` property. -```Javascript +```javascript ``` @@ -190,10 +190,11 @@ render() { /> } ``` -#### Custom Compoments +#### Custom Components - FoldIconComponent: to render the Icon of buttons. - FoldButtonComponent: to render the folding buttons for each Column. With default rendering as below. + ```javascript const defaultFoldIconComponent = ({ collapsed }) => { //Render your Icon here