Skip to content

Instantly share code, notes, and snippets.

@AllenFang
Created February 16, 2017 15:16
Show Gist options
  • Select an option

  • Save AllenFang/1369a3dff5a1fce4aec57906c369f20b to your computer and use it in GitHub Desktop.

Select an option

Save AllenFang/1369a3dff5a1fce4aec57906c369f20b to your computer and use it in GitHub Desktop.
class RowSelectionNavTable extends React.Component {
render() {
const selectRow = {
mode: 'checkbox'
};
return (
<BootstrapTable data={ products } selectRow={ selectRow } keyBoardNav>
<TableHeaderColumn dataField='id' isKey={ true }>Product ID</TableHeaderColumn>
<TableHeaderColumn dataField='name'>Product Name</TableHeaderColumn>
<TableHeaderColumn dataField='price'>Product Price</TableHeaderColumn>
</BootstrapTable>
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment