Disabled ComboBox ItemsPremium
Some specific scenarios require the control over the enabled/disabled state of the different ComboBox items. Once an item is disabled it cannot be selected as a value for the component but based on the accessibility requirements of your application it could be focusable or not focusable, when navigating the different items using a keyboard.
The skipDisabledItems property of the ComboBox controls how the disabled items will be handled in a keyboard navigation scenarios. In this article you can see how the component behaves in the following scenarios:
- Disabled items that are not focused when working with the keyboard
- Disabled items that are focused when working with the keyboard
- Grouped data that contains disabled items that are not focused when working with the keyboard
- Grouped data that contains disabled items that are focused when working with the keyboard
Disabled Items Without Keyboard Focusing
The following example demonstrates ComboBox items that are disabled and cannot receive keyboard focus when navigating the list.
Disabled Items With Keyboard Focusing
The following example demonstrates disabled ComboBox items that can still receive keyboard focus. Selecting a disabled item does not change the ComboBox value.
Disabled Items Without Keyboard Focusing + Grouping
The following example demonstrates how to combine data grouping with disabled items that cannot receive keyboard focus.
Disabled Items With Keyboard Focusing + Grouping
The following example demonstrates how to combine data grouping with disabled items that can receive keyboard focus but cannot be selected.