<NME> accessorManager.js
<BEF> ADDFILE
<MSG> accessors

<DFF> @@ -0,0 +1,20 @@
+import { spyOnComponent } from 'react-component-managers';
+import * as helpers from './dataHelpers';
+
+export default function createAccessorManager(component) {
+  let { textField, valueField } = component.props
+
+  spyOnComponent(component, {
+    componentWillReceiveProps(props) {
+      ({ textField, valueField } = props);
+    }
+  })
+
+  return {
+    text: item => helpers.dataText(item, textField),
+    value: item => helpers.dataValue(item, textField),
+    indexOf: (data, item) => helpers.dataIndexOf(data, item, valueField),
+    matches: (a, b) => helpers.valueMatcher(a, b, valueField),
+    find: (data, item) => helpers.dataItem(data, item, valueField),
+  }
+}

accessors