@@ -79,8 +79,9 @@ Listboxes only support a single selected option at a time by default, but adding
79
79
80
80
### Listbox value
81
81
82
- The listbox's value is an array containing the values of the selected option(s). The listbox's value
83
- can be bound using ` [cdkListboxValue] ` and ` (cdkListboxValueChange) ` .
82
+ The listbox's value is an array containing the values of the selected option(s). This is true even
83
+ for the single selection listbox, whose value is an array containing a single element. The listbox's
84
+ value can be bound using ` [cdkListboxValue] ` and ` (cdkListboxValueChange) ` .
84
85
85
86
<!-- example({
86
87
"example": "cdk-listbox-value-binding",
@@ -101,7 +102,7 @@ objects, you should provide a custom comparison function instead. This can be se
101
102
102
103
### Angular Forms support
103
104
104
- The CDK Listbox has out of the box support for both template driven forms and reactive forms.
105
+ The CDK Listbox supports both template driven forms and reactive forms.
105
106
106
107
<!-- example({
107
108
"example": "cdk-listbox-template-forms",
@@ -134,7 +135,7 @@ validation errors:
134
135
135
136
### Disabling options
136
137
137
- Individual options can be disabled for selection by setting ` cdkOptionDisabled ` on them .
138
+ You can disable options for selection by setting ` cdkOptionDisabled ` .
138
139
In addition, the entire listbox control can be disabled by setting ` cdkListboxDisabled ` on the
139
140
listbox element.
140
141
@@ -172,7 +173,7 @@ If you prefer to use the [aria-activedescendant][activedescendant] strategy inst
172
173
#### Orientation
173
174
174
175
Listboxes assume a vertical orientation by default, but can be customized by setting the
175
- ` cdkListboxOrientation ` input oe listbox . Note that this only affects the keyboard navigation. You
176
+ ` cdkListboxOrientation ` input. Note that this only affects the keyboard navigation. You
176
177
will still need to adjust your CSS styles to change the visual appearance.
177
178
178
179
<!-- example({
@@ -197,10 +198,10 @@ setting the `cdkOptionTypeaheadLabel` on the option.
197
198
198
199
When using keyboard navigation to navigate through the options, the navigation wraps when attempting
199
200
to navigate past the start or end of the options. To change this, set
200
- ` cdkListboxNavigationWraps=false ` on the listbox.
201
+ ` cdkListboxNavigationWrapDisabled ` on the listbox.
201
202
202
203
Keyboard navigation skips disabled options by default. To change this set
203
- ` cdkListboxNavigationSkipsDisabled=false ` on the listbox.
204
+ ` cdkListboxNavigatesDisabledOptions ` on the listbox.
204
205
205
206
<!-- example({
206
207
"example": "cdk-listbox-custom-navigation",
@@ -211,6 +212,6 @@ Keyboard navigation skips disabled options by default. To change this set
211
212
<!-- links -->
212
213
213
214
[ aria ] : https://www.w3.org/WAI/ARIA/apg/patterns/listbox/ ' WAI ARIA Listbox Pattern '
214
- [ keyboard ] : https://www.w3.org/WAI/ARIA/apg/patterns/listbox/#keyboard-interaction-11
215
- [ roving-tabindex ] : https://developer.mozilla.org/en-US/docs/Web/Accessibility/Keyboard-navigable_JavaScript_widgets#technique_1_roving_tabindex
216
- [ activedescendant ] : https://developer.mozilla.org/en-US/docs/Web/Accessibility/Keyboard-navigable_JavaScript_widgets#technique_2_aria-activedescendant
215
+ [ keyboard ] : https://www.w3.org/WAI/ARIA/apg/patterns/listbox/#keyboard-interaction-11 ' WAI ARIA Listbox Keyboard Interaction '
216
+ [ roving-tabindex ] : https://developer.mozilla.org/en-US/docs/Web/Accessibility/Keyboard-navigable_JavaScript_widgets#technique_1_roving_tabindex ' MDN Roving Tabindex Technique '
217
+ [ activedescendant ] : https://developer.mozilla.org/en-US/docs/Web/Accessibility/Keyboard-navigable_JavaScript_widgets#technique_2_aria-activedescendant ' MDN aria-activedescendant Technique '
0 commit comments