Trait freya::core::prelude::NodeAccessibility

source ·
pub trait NodeAccessibility {
    // Required methods
    fn get_accessibility_id(&self) -> Option<NodeId>;
    fn get_inner_texts(&self) -> Option<String>;
    fn get_accessibility_children(&self) -> Vec<NodeId>;
}
Expand description

Shortcut functions to retrieve Acessibility info from a Dioxus Node

Required Methods§

source

fn get_accessibility_id(&self) -> Option<NodeId>

source

fn get_inner_texts(&self) -> Option<String>

Return the first text node from this Node

source

fn get_accessibility_children(&self) -> Vec<NodeId>

Collect all the AccessibilityIDs from a Node’s children

Implementations on Foreign Types§

source§

impl NodeAccessibility for NodeRef<'_, CustomAttributeValues>

source§

fn get_inner_texts(&self) -> Option<String>

Return the first text node from this Node

source§

fn get_accessibility_children(&self) -> Vec<NodeId>

Collect all descendant accessibility node ids

source§

fn get_accessibility_id(&self) -> Option<NodeId>

Implementors§