Update README.md (#213)

* Update README.md

Bug fix in custom props example

* Update README.md

Bug fix in custom column props example
This commit is contained in:
wonyoung 2017-05-06 08:22:48 +09:00 committed by Tanner Linsley
parent 1757b4dd9f
commit ddee18cf86

View File

@ -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
}
}
}