content: 'use strict';
  import React from 'react';
  import {BootstrapTable, TableHeaderColumn} from 'react-bootstrap-table';
  
  
  var products = [];
  
  function addProducts(quantity) {
    var startId = products.length;
    for (var i = 0; i < quantity; i++) {
      var id = startId + i;
      products.push({
        id: id,
        name: "Item name " + id,
        price: 2100 + i
      });
    }
  }
  
  addProducts(5);
  
  var selectRowProp = {
    mode: "checkbox",
    clickToSelect: true  //enable click to select
  };
  
  export default class ClickToSelectTable extends React.Component{
    render(){
      return (
        <BootstrapTable data={products} selectRow={selectRowProp}>
            <TableHeaderColumn dataField="id" isKey={true}>Product ID</TableHeaderColumn>
            <TableHeaderColumn dataField="name">Product Name</TableHeaderColumn>
            <TableHeaderColumn dataField="price">Product Price</TableHeaderColumn>
        </BootstrapTable>
      );
    }
  };
  