menu

AccessibilityNode

import { AccessibilityNode } from "destack:accessibility/binding";

Accessibility node descriptor.

language/library/src/accessibility/binding/node.ds:187:224
1export struct AccessibilityNode {2    id: AccessibilityNodeId;3    role: AccessibilityRole;4    childIds: [AccessibilityNodeId];5    bounds: AccessibilityNodeBounds;6    name: string;7    description: string;8    help: string;9    value: string;10    roleDescription: string;11    brailleLabel: string;12    brailleRoleDescription: string;13    keyShortcuts: string;14    languageTag: string;15    url: string;16    state: AccessibilityNodeState;17    actions: AccessibilityNodeActionFlags;18    relations: AccessibilityNodeRelations;19    customActions: [AccessibilityCustomAction];20}

Members

id: AccessibilityNodeId

Stable node identifier.

role: AccessibilityRole

Semantic role.

childIds: [AccessibilityNodeId]

Child order for this node.

bounds: AccessibilityNodeBounds

Bounds in logical window coordinates.

name: string

Accessible name.

description: string

Accessible description.

help: string

User-visible help or tooltip text.

value: string

Accessible value for nontext current values.

roleDescription: string

aria-roledescription.

brailleLabel: string

aria-braillelabel.

brailleRoleDescription: string

aria-brailleroledescription.

keyShortcuts: string

aria-keyshortcuts.

languageTag: string

BCP 47 language tag for this node's content.

url: string

Canonical URL for link and document nodes.

state: AccessibilityNodeState

Shared node state.

actions: AccessibilityNodeActionFlags

Standard actions exposed by this node.

relations: AccessibilityNodeRelations

ARIA relation state.

customActions: [AccessibilityCustomAction]

Custom actions exposed by this node.