ByRoleOptions

external interface ByRoleOptions(source)

Properties

Link copied to clipboard
abstract var busy: Boolean?

If true only includes elements in the query set that are marked as busy in the accessibility tree, i.e., aria-busy="true"

Link copied to clipboard
abstract var checked: Boolean?

If true only includes elements in the query set that are marked as checked in the accessibility tree, i.e., aria-checked="true"

Link copied to clipboard
abstract var current: Any?

Filters elements by their aria-current state. true and false match aria-current="true" and aria-current="false" (as well as a missing aria-current attribute) respectively.

Link copied to clipboard
abstract var description: Any?

Only considers elements with the specified accessible description.

Link copied to clipboard
abstract var expanded: Boolean?

If true only includes elements in the query set that are marked as expanded in the accessibility tree, i.e., aria-expanded="true"

Link copied to clipboard
abstract var hidden: Boolean?

If true includes elements in the query set that are usually excluded from the accessibility tree. role="none" or role="presentation" are included in either case.

Link copied to clipboard
abstract var level: Double?

Includes elements with the "heading" role matching the indicated level, either by the semantic HTML heading elements <h1>-<h6> or matching the aria-level attribute.

Link copied to clipboard
abstract var name: Any?

Only considers elements with the specified accessible name.

Link copied to clipboard
abstract var pressed: Boolean?

If true only includes elements in the query set that are marked as pressed in the accessibility tree, i.e., aria-pressed="true"

Link copied to clipboard
abstract var queryFallbacks: Boolean?

Includes every role used in the role attribute For example *ByRole('progressbar', {queryFallbacks: true})will find <div role="meter progressbar">.

Link copied to clipboard
abstract var selected: Boolean?

If true only includes elements in the query set that are marked as selected in the accessibility tree, i.e., aria-selected="true"

Link copied to clipboard
abstract var suggest: Boolean?

suppress suggestions for a specific query

Link copied to clipboard
abstract var value: ByRoleOptionsValue?