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
function rowClassNameFormat(row, rowIdx) { | |
// row is whole row object | |
// rowIdx is index of row | |
return rowIdx % 2 === 0 ? 'td-column-function-even-example' : 'td-column-function-odd-example'; | |
} | |
class TrClassStringTable extends React.Component { | |
render() { | |
return ( | |
<BootstrapTable data={ products } trClassName={this.rowClassNameFormat}> |