pub struct RoleSelector { /* private fields */ }
Expand description
Fluent builder for role-based queries with comprehensive options
Implementations§
Source§impl RoleSelector
impl RoleSelector
Sourcepub fn new(value: impl Into<String>) -> Self
pub fn new(value: impl Into<String>) -> Self
Create a new RoleSelector with the given role value
Set the hidden option - include elements normally excluded from accessibility tree
Sourcepub fn name(self, name: impl Into<String>) -> Self
pub fn name(self, name: impl Into<String>) -> Self
Set the name option - filter by accessible name Accepts strings and automatically detects regex patterns (strings starting and ending with ‘/’)
Sourcepub fn description(self, description: impl Into<String>) -> Self
pub fn description(self, description: impl Into<String>) -> Self
Set the description option - filter by accessible description
Accepts strings and automatically detects regex patterns (strings starting and ending with ‘/’)
Sourcepub fn selected(self, selected: bool) -> Self
pub fn selected(self, selected: bool) -> Self
Set the selected option - filter by selected state (aria-selected)
Sourcepub fn checked(self, checked: bool) -> Self
pub fn checked(self, checked: bool) -> Self
Set the checked option - filter by checked state (aria-checked)
Sourcepub fn pressed(self, pressed: bool) -> Self
pub fn pressed(self, pressed: bool) -> Self
Set the pressed option - filter by pressed state (aria-pressed)
Sourcepub fn suggest(self, suggest: bool) -> Self
pub fn suggest(self, suggest: bool) -> Self
Set the suggest option - enable/disable query suggestions
Sourcepub fn current(self, current: CurrentState) -> Self
pub fn current(self, current: CurrentState) -> Self
Set the current option - filter by current state (aria-current)
Sourcepub fn expanded(self, expanded: bool) -> Self
pub fn expanded(self, expanded: bool) -> Self
Set the expanded option - filter by expanded state (aria-expanded)
Sourcepub fn query_fallbacks(self, query_fallbacks: bool) -> Self
pub fn query_fallbacks(self, query_fallbacks: bool) -> Self
Set the query_fallbacks option - enable querying fallback roles
Sourcepub fn level(self, level: u8) -> Self
pub fn level(self, level: u8) -> Self
Set the level option - filter by heading level (only for heading role)
Sourcepub fn value(self, value: ValueOptions) -> Self
pub fn value(self, value: ValueOptions) -> Self
Set the value option - filter by value properties (only for range widgets)
Trait Implementations§
Source§impl Clone for RoleSelector
impl Clone for RoleSelector
Source§fn clone(&self) -> RoleSelector
fn clone(&self) -> RoleSelector
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more