code: function DownloadButton({ bootStrapTableOnClick, onSelect }) {
    /*
    This handler is fired by the react-bootstrap DropdownButton component
    when the user has selected an export option (tsv or csv).  It passes
    in the eventKey from the MenuItem that was selected by the user.
     */
    function handleOnSelect(eventKey) {
      /*
      Fire the user specified action and pass the key
      and react-bootstrap-table onClick function.
      */
      onSelect(eventKey, bootStrapTableOnClick);
    }
    return (
      <div>
        <DropdownButton bsStyle='default' title='Export' id='export' onSelect={ handleOnSelect }>
          <MenuItem eventKey='csv'>CSV</MenuItem>
          <MenuItem eventKey='tsv'>TSV</MenuItem>
        </DropdownButton>
      </div>
    );
  }
docs: /*
  Custom Download button that uses the DropdownButton component
  from react-bootstrap.