cpr.controls.ListBoxAccessibility
Class that manages accessibility of ListBox
Provides a two-level structure of listbox (root) and item.
You can set each individual item through forItem().
Index
Properties
| type
|
ItemsAccessibility |
| readonly
|
item Returns the default accessibility settings for all items.
You can set each individual item through forItem().
|
Methods
Get the corresponding ARIA attribute value.
| name |
type |
description |
| property
|
String |
ARIA attribute name from which to get the value. The "aria-" prefix can be omitted. |
| return
|
String |
The corresponding ARIA attribute value. |
Specifies the value of a specific ARIA attribute.
| name |
type |
description |
| property
|
String |
The ARIA attribute name to assign a value to. The "aria-" prefix can be omitted. |
| value
|
String |
The attribute value to specify. |
Specifies specific ARIA attribute values.
If you specify an Accessibility object, that object's reference ID is used as the property value.
You can assign an Accessibility object to a property that references another element, such as aria-labelledby, aria-describedby, etc.
| name |
type |
description |
| property
|
String |
The ARIA attribute name to assign a value to. The "aria-" prefix can be omitted. |
| value
|
Accessibility |
The attribute value to specify. |
Specifies specific ARIA attribute values.
When specifying an array, the value of each element is used as the property value.
Used for properties that can refer to multiple elements, such as aria-labelledby, aria-describedby, etc. For arrays containing Accessibility objects, the reference ID of each object is used.
| name |
type |
description |
| property
|
String |
The ARIA attribute name to assign a value to. The "aria-" prefix can be omitted. |
| value
|
Accessibility[] |
An array of property values to specify. |
Get all specified ARIA properties in JSON format.
Specify multiple ARIA properties at once.
| name |
type |
description |
| set
|
AriaSet |
A JSON object with the property name keys and values to specify. |
Bind to a specific ARIA property.
| name |
type |
description |
| propertyName
|
String |
The name of the property to bind to. The "aria-" prefix can be omitted. |
Removes set accessibility properties.
| name |
type |
description |
| propertyName
|
String |
property name |
Unbinds to a specific ARIA property.
| name |
type |
description |
| propertyName
|
String |
The name of the property to unbind. The "aria-" prefix can be omitted. |