Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View prajapati-parth's full-sized avatar
:octocat:
undefined

Parth Prajapati prajapati-parth

:octocat:
undefined
View GitHub Profile
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}>