Created
September 20, 2016 13:52
-
-
Save mergeweb/5eae8704bf89d64ef6e5942a6aaf6666 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
<table className="table"> | |
{this._getHeadings()} | |
<tbody ref="tbody"> | |
{this.props.data.map((row, i) => { | |
return ( | |
<tr key={'row_' + i}> | |
{this.props.selected_columns.map((column) => { | |
return ( | |
<td className="no-wrap" key={row['id'] + '+' + column}> | |
<Field {...row} | |
field={column} | |
value={row[this.props.columns[column]]} | |
/> | |
</td> | |
); | |
})} | |
</tr>); | |
})} | |
</tbody> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment