Raxol.Core.Accessibility.MetadataRegistry (Raxol Core v2.4.0)

Copy Markdown View Source

Pure-functional helpers for accessibility metadata and component style registration within the AccessibilityServer state.

Summary

Functions

Gets a component style keyed by {:component_style, type}.

Gets element/component metadata from state.

Puts element/component metadata into state.

Registers a component style keyed by {:component_style, type}.

Removes element/component metadata from state.

Unregisters a component style.

Functions

get_component_style(state, component_type)

Gets a component style keyed by {:component_style, type}.

get_metadata(state, component_id)

Gets element/component metadata from state.

put_metadata(state, component_id, metadata)

Puts element/component metadata into state.

register_component_style(state, component_type, style)

Registers a component style keyed by {:component_style, type}.

remove_metadata(state, component_id)

Removes element/component metadata from state.

unregister_component_style(state, component_type)

Unregisters a component style.