Created
September 28, 2016 07:25
-
-
Save Rosaniline/956eb804fbea9a0ad791364adff68d19 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Explicitly render | |
<TableHeaderColumn dataField="status" dataSort filter={{type: 'TextFilter'}}> status </TableHeaderColumn> | |
// | |
// Dynamically render | |
{ | |
colDef.map(col => { | |
return <TableHeaderColumn | |
key={col.name} | |
dataField={col.name} | |
dataSort | |
isKey={col.name === 'id'} | |
> { col.name } </TableHeaderColumn> | |
}) | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment