`Grid GridFieldGroupBy Component.`
==================================

Collect unique data from rawData and connected to grid state via Redux.


```javascript
<GridFieldGroupBy
  id="category"
  label="Category"
  ?grid="robot"
/>
```

Props
-----

| Prop | Type | Required | Default |
| ---- | ---- | -------- | ------- |
| helper | arrayOf[object Object] |  | [] |
| id | string |  | 'fieldGroupByFilter' |
| label | string |  | '' |
| placeholder | string |  | '' |
| reducer | func |  | (result, record, id) =><br>{<br>  if (Array.isArray(record[id]))<br>  {<br>    record[id].forEach((field) =><br>    {<br>      if (result.indexOf(field) === -1)<br>      {<br>        result.push(field);<br>      }<br>    });<br>  }<br>  else if (typeof record[id] === 'string' && result.indexOf(record[id]) === -1)<br>  {<br>    result.push(record[id]);<br>  }<br>  return result;<br>} |

### `helper`

Change dropdown id to title from helper object


type: `arrayOf[object Object]`
defaultValue: `[]`


### `id`

Redux form state id


type: `string`
defaultValue: `'fieldGroupByFilter'`


### `label`

Filter label


type: `string`
defaultValue: `''`


### `placeholder`

Field placeholder


type: `string`
defaultValue: `''`


### `reducer`

type: `func`
defaultValue: `(result, record, id) =>
{
  if (Array.isArray(record[id]))
  {
    record[id].forEach((field) =>
    {
      if (result.indexOf(field) === -1)
      {
        result.push(field);
      }
    });
  }
  else if (typeof record[id] === 'string' && result.indexOf(record[id]) === -1)
  {
    result.push(record[id]);
  }
  return result;
}`

