@@ -12,59 +12,71 @@ Change event Handler that is called when the value is changed.
1212
1313### onSelect?{ type: 'Function(Any value)' }
1414
15- This handler fires when an item has been selected from the list. It fires before the ` onChange ` handler, and fires
15+ This handler fires when an item has been selected from the list. It fires before the ` onChange ` handler, and fires
1616regardless of whether the value has actually changed.
1717
1818<EditableExample codeText={require('../examples/onSelect')(widgetName)}/>
1919
2020### data?{ type: 'Array<Any >' }
2121
22- provide an array of possible values for the DropdownList . If an array of ` objects ` is provided you
22+ provide an array of possible values for the ${widgetName} . If an array of ` objects ` is provided you
2323should use the ` valueField ` and ` textField ` props, to specify which object
2424properties comprise the value field (such as an id) and the field used to label the item.
2525
2626### valueField?{ type: 'String' }
2727
28- A dataItem field name for uniquely identifying items in the ` data ` list. A ` valueField ` is required
28+ A dataItem field name for uniquely identifying items in the ` data ` list. A ` valueField ` is required
2929when the ` value ` prop is not itself a dataItem. A ` valueField ` is useful when specifying the selected item, by
3030its ` id ` instead of using the model as the value.
3131
32- When a ` valueField ` is not provided, the {widgetName} will use strict equality checks (` === ` ) to locate
32+ When a ` valueField ` is not provided, the {widgetName} will use strict equality checks (` === ` ) to locate
3333the ` value ` in the ` data ` list.
3434
3535<EditableExample codeText={require('../examples/valueField')(widgetName)}/>
3636
3737### textField?{ type: 'String | Function(dataItem)' }
3838
39- {` Specify which data item field to display in the ${widgetName} and selected item. The ` }` textField ` {`prop
39+ {` Specify which data item field to display in the ${widgetName} and selected item. The ` }` textField ` {`prop
4040may also also used as to find an item in the list as you type. Providing an accessor function allows for computed text values`}
4141
4242<EditableExample codeText={require('../examples/textField')(widgetName)}/>
4343
4444### valueComponent?{ type: 'Component' }
4545
46- This component is used to render the selected value of the combobox . The default component
46+ This component is used to render the selected value of the ${widgetName} . The default component
4747renders the text of the selected item (specified by ` textfield ` )
4848
4949<EditableExample codeText={require('../examples/valueComponent')(widgetName)}/>
5050
5151### itemComponent?{ type: 'Component' }
5252
53- This component is used to render each possible item in the DropdownList . The default component
53+ This component is used to render each possible item in the ${widgetName} . The default component
5454renders the text of the selected item (specified by ` textfield ` )
5555
5656<EditableExample codeText={require('../examples/itemComponent')(widgetName)}/>
5757
58+ ### disabled?{ type: '[ Boolean, Array] ' }
59+
60+ Disable the widget, if an ` Array ` of values is passed in only those values will be disabled.
61+
62+ <EditableExample codeText={require('../examples/disabled')(widgetName, 'disabled', false)}/>
63+
64+ ### readOnly?{ type: '[ Boolean, Array] ' }
65+
66+ Place the {widgetName} in a read-only mode, If an ` Array ` of values is passed in only those values will be read-only.
67+
68+ <EditableExample codeText={require('../examples/disabled')(widgetName, 'readOnly', false)}/>
69+
5870### groupBy?{ type: 'String | Function(Any dataItem)' }
5971
60- Determines how to group the {widgetName} dropdown list . Providing a ` string ` will group
72+ Determines how to group the {widgetName}. Providing a ` string ` will group
6173the ` data ` array by that property. You can also provide a function which should return the group value.
6274
6375<EditableExample codeText={require('../examples/groupby')(widgetName)}/>
6476
6577### groupComponent?{ type: 'Component' }
6678
67- This component is used to render each option group, when ` groupBy ` is specified. By
79+ This component is used to render each option group, when ` groupBy ` is specified. By
6880default the ` groupBy ` value will be used.
6981
7082
@@ -79,7 +91,7 @@ Text to display when the value is empty.
7991
8092The string value of the current search being typed into the {widgetName}. When
8193unset (` undefined ` ) the {widgetName} will handle the filtering internally.
82- The ` defaultSearchTerm ` prop can be used to set an initialization value for uncontrolled widgets. searchTerm is only
94+ The ` defaultSearchTerm ` prop can be used to set an initialization value for uncontrolled widgets. ` searchTerm ` is only
8395relevant when the ` filter ` prop is set.
8496
8597
@@ -105,7 +117,7 @@ when the `open` prop is set otherwise the widget open buttons won't work.
105117
106118### filter?{ type: '[ String, Function(dataItem, searchTerm)] ', default: 'false' }
107119
108- Specify a filtering method used to reduce the items in the dropdown as you type. There are a few prebuilt filtering
120+ Specify a filtering method used to reduce the items in the dropdown as you type. There are a few built-in filtering
109121methods that can be specified by passing the ` String ` name.
110122
111123To handle custom filtering techniques provide a ` function ` that returns ` true ` or ` false ` for each passed in item
@@ -168,4 +180,4 @@ Text to display when the the current filter does not return any results.
168180- <kbd >home</kbd > move focus to first item
169181- <kbd >end</kbd > move focus to last item
170182- <kbd >enter</kbd > select focused item
171- - <kbd >any key</kbd > search list for item starting with key
183+ - <kbd >any key</kbd > search list for item starting with key
0 commit comments