Skip to content

Instantly share code, notes, and snippets.

@AllenFang
Created February 13, 2017 13:35
Show Gist options
  • Select an option

  • Save AllenFang/66ad7ebef9c43c699e90a76fa7fe7c46 to your computer and use it in GitHub Desktop.

Select an option

Save AllenFang/66ad7ebef9c43c699e90a76fa7fe7c46 to your computer and use it in GitHub Desktop.
class EditColumnClassTable extends React.Component {
render() {
const cellEditProps = {
mode: 'click'
};
return (
<BootstrapTable data={ products } cellEdit={ cellEditProps }>
<TableHeaderColumn dataField='id' isKey>Product ID</TableHeaderColumn>
<TableHeaderColumn dataField='name'>Product Name</TableHeaderColumn>
<TableHeaderColumn dataField='price' editColumnClassName='class-for-editing-cell'>Product Price</TableHeaderColumn>
</BootstrapTable>
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment