From ddee18cf86f7c0da718d6fb0aa8d1658a42e3421 Mon Sep 17 00:00:00 2001 From: wonyoung Date: Sat, 6 May 2017 08:22:48 +0900 Subject: [PATCH] Update README.md (#213) * Update README.md Bug fix in custom props example * Update README.md Bug fix in custom column props example --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3435db7..e330759 100644 --- a/README.md +++ b/README.md @@ -518,7 +518,7 @@ You can use these callbacks for dynamic styling as well! getTrProps={(state, rowInfo, column) => { return { style: { - background: rowInfo.age > 20 ? 'green' : 'red' + background: rowInfo.row.age > 20 ? 'green' : 'red' } } }} @@ -543,7 +543,7 @@ const columns = [{ getProps: (state, rowInfo, column) => { return { style: { - background: rowInfo.name === 'Santa Clause' ? 'red' : null + background: rowInfo.row.name === 'Santa Clause' ? 'red' : null } } }