mirror of
https://github.com/gosticks/react-table.git
synced 2026-03-30 17:34:30 +00:00
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:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user