Skip to content

Instantly share code, notes, and snippets.

@mergeweb
Created September 20, 2016 13:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mergeweb/5eae8704bf89d64ef6e5942a6aaf6666 to your computer and use it in GitHub Desktop.
Save mergeweb/5eae8704bf89d64ef6e5942a6aaf6666 to your computer and use it in GitHub Desktop.
<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